You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/matej/argparse.py
+3-9Lines changed: 3 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,6 @@ class ArgParser(argparse.ArgumentParser):
20
20
It also provides the `'store_dict'` action, which allows the user to pass key-value pairs as argument values.
21
21
Additionally, any argument can be given a :class:`Query` instance as a default value, which will prompt the user for the argument's value if not provided. #TODO: Test this more thoroughly
22
22
"""
23
-
24
23
def__init__(self, *args, **kw):
25
24
""" Initialise the parser. See the documentation of :class:`argparse.ArgumentParser` for more information. """
The argument can receive multiple values (if it does, they will be stored as a list). This can be explicitly restricted by passing `nargs=1` to this method.
366
-
367
364
Parameters
368
365
----------
369
366
action : str or :class:`argparse.Action`, default=ListOrSingleAction
370
367
The action to use for the argument. Should most likely be left as default but can be overridden if necessary.
371
-
nargs : int or str, default='+'
372
-
The number of arguments to parse. See the documentation of :meth:`argparse.ArgumentParser.add_argument` for more information.
0 commit comments