mirror of
https://github.com/ceph/ceph
synced 2025-03-29 23:09:47 +00:00
Merge pull request #26454 from batrick/i37955-followup
ceph.in: use correct module for cmd flags Reviewed-by: Sage Weil <sage@redhat.com> Reviewed-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
commit
554c821c54
@ -138,6 +138,7 @@ import signal
|
||||
import string
|
||||
import subprocess
|
||||
|
||||
import ceph_argparse
|
||||
from ceph_argparse import \
|
||||
concise_sig, descsort_key, parse_json_funcsigs, \
|
||||
validate_command, find_cmd_target, \
|
||||
@ -471,7 +472,7 @@ def format_help(cmddict, partial=None):
|
||||
if not cmd['help']:
|
||||
continue
|
||||
flags = cmd.get('flags', 0)
|
||||
if flags & (argparse.FLAG_OBSOLETE | argparse.FLAG_DEPRECATED | argparse.FLAG_HIDDEN):
|
||||
if flags & (ceph_argparse.FLAG_OBSOLETE | ceph_argparse.FLAG_DEPRECATED | ceph_argparse.FLAG_HIDDEN):
|
||||
continue
|
||||
concise = concise_sig(cmd['sig'])
|
||||
if partial and not concise.startswith(partial):
|
||||
|
Loading…
Reference in New Issue
Block a user