handle typed without default params

This commit is contained in:
Isaac 2023-05-04 23:42:04 -07:00
parent 3592ec3ddf
commit 16ac4824a5
No known key found for this signature in database
GPG key ID: E69FB5A841448A48

View file

@ -89,6 +89,7 @@ def has_required_param_options(action: Action):
)
or '--archive' in action.option_strings
or action.metavar in ('PATTERN', 'KEYS', 'N')
or (action.type is not None and action.default is None)
)