New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
crushtool: improve usage/tip messages #7142
Conversation
@dillaman Some cleanups. Could you help me review it? Thanks:-) |
cout << " insert or move an item into the hierarchy at the\n"; | ||
cout << " given location\n"; | ||
cout << " -i mapfn --remove-item name\n" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dillaman Besides, some of the tips conflict with the implementation. Take "--remove-item" for example, the implementation(check line 415 below here) really considers "--remove_item" as a match, although we can rightfully handle both internally.
f1f20f1
to
28b91f8
Compare
I think you ned to run test/run-cli-tests and then move the help.t.err to help.t and commit |
28b91f8
to
4ebf697
Compare
Below is the test results: Ran 15 tests, 0 skipped, 0 failed.cli/ceph-conf/env-vs-args.t: passed Ran 9 tests, 0 skipped, 0 failed.cli/crushtool/add-item-in-tree.t: passed Ran 27 tests, 0 skipped, 0 failed.cli/monmaptool/add-exists.t: passed Ran 11 tests, 0 skipped, 0 failed.cli/osdmaptool/clobber.t: passed Ran 10 tests, 0 skipped, 0 failed.cli/radosgw-admin/help.t: passed Ran 1 tests, 0 skipped, 0 failed.cli/rbd/help.t: passed Ran 3 tests, 0 skipped, 0 failed. |
bb0b24a
to
a5483c0
Compare
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
a5483c0
to
e063edd
Compare
crushtool: improve usage/tip messages Reviewed-by: Sage Weil <sage@redhat.com>
So they are displayed in a more uniform style and more human-readable.