-
Notifications
You must be signed in to change notification settings - Fork 6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ceph.in: print all matched commands if arg missing
so if only a single command matches, the "Invalid command:" error message is printed, otherwise, the top 10 matched candidate commands are printed. also, validate_command() now always returns `{}` if the command is not valid. because we just the retval of it using ```py if validate_command(...): # ... ``` and we do not differentiate `None` from `{}` here. and it'd be more consistent and easier from the implementation perspective this way. Fixes: http://tracker.ceph.com/issues/22344 Signed-off-by: Kefu Chai <kchai@redhat.com>
- Loading branch information
Showing
2 changed files
with
55 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters