mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
[doc] add more comments
This commit is contained in:
parent
e65e6f5990
commit
5194eb75c4
1 changed files with 4 additions and 0 deletions
|
@ -569,7 +569,11 @@ class ActionsMap(object):
|
|||
|
||||
# Add arguments to the parser
|
||||
def _add_arguments(tid, parser, arguments):
|
||||
# parser is argparse._ArgumentGroup for top_parser
|
||||
# or ExtendedArgumentParser for other cases
|
||||
# or maybe something else?
|
||||
for argument_name, argument_options in arguments.items():
|
||||
# will adapt arguments name for cli or api context
|
||||
names = top_parser.format_arg_names(str(argument_name),
|
||||
argument_options.pop('full', None))
|
||||
|
||||
|
|
Loading…
Reference in a new issue