Skip to content

Commit

Permalink
Merge pull request #12540 from dmick/wip-18297
Browse files Browse the repository at this point in the history
ceph.in: allow 'flags' to not be present in cmddescs
  • Loading branch information
liewegas committed Dec 20, 2016
2 parents a84de42 + e72c801 commit e0903c9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ceph.in
Expand Up @@ -342,7 +342,9 @@ def format_help(cmddict, partial=None):

if not cmd['help']:
continue
if cmd['flags'] is not None and ((cmd['flags'] & (FLAG_OBSOLETE | FLAG_DEPRECATED)) != 0):
flags = cmd.get('flags')
if (flags is not None and
(flags & (FLAG_OBSOLETE | FLAG_DEPRECATED)) != 0):
continue
concise = concise_sig(cmd['sig'])
if partial and not concise.startswith(partial):
Expand Down

0 comments on commit e0903c9

Please sign in to comment.