mirror of
https://github.com/derrod/legendary.git
synced 2024-12-22 17:55:27 +00:00
[cli] Do not print help for repair alias
This commit is contained in:
parent
61c2db9b60
commit
c7d3846118
|
@ -905,7 +905,7 @@ def main():
|
||||||
print('Individual command help:')
|
print('Individual command help:')
|
||||||
subparsers = next(a for a in parser._actions if isinstance(a, argparse._SubParsersAction))
|
subparsers = next(a for a in parser._actions if isinstance(a, argparse._SubParsersAction))
|
||||||
for choice, subparser in subparsers.choices.items():
|
for choice, subparser in subparsers.choices.items():
|
||||||
if choice in ('download', 'update'):
|
if choice in ('download', 'update', 'repair'):
|
||||||
continue
|
continue
|
||||||
print(f'\nCommand: {choice}')
|
print(f'\nCommand: {choice}')
|
||||||
print(subparser.format_help())
|
print(subparser.format_help())
|
||||||
|
|
Loading…
Reference in a new issue