mirror of
https://github.com/clearml/clearml
synced 2025-03-03 10:42:00 +00:00
Add ArgParser default help (if not provided)
This commit is contained in:
parent
2065288a90
commit
cd77f0b8c8
@ -102,7 +102,11 @@ class _Arguments(object):
|
||||
for a in actions
|
||||
}
|
||||
|
||||
desc_ = {a.dest: a.help for a in actions}
|
||||
desc_ = {
|
||||
a.dest: a.help or (
|
||||
'{}default: {}'.format('choices: {}, '.format(a.choices) if a.choices else '',
|
||||
defaults_.get(a.dest, '')))
|
||||
for a in actions}
|
||||
descriptions.update(desc_)
|
||||
types_ = {a.dest: (a.type or None) for a in actions}
|
||||
arg_types.update(types_)
|
||||
|
Loading…
Reference in New Issue
Block a user