Commit 1a2c1fbf authored by R David Murray's avatar R David Murray

#14391: clarify docstring discussion of Action's 'type' argument's value.

parent ac9b5c67
...@@ -740,10 +740,10 @@ class Action(_AttributeHolder): ...@@ -740,10 +740,10 @@ class Action(_AttributeHolder):
- default -- The value to be produced if the option is not specified. - default -- The value to be produced if the option is not specified.
- type -- The type which the command-line arguments should be converted - type -- A callable that accepts a single string argument, and
to, should be one of 'string', 'int', 'float', 'complex' or a returns the converted value. The standard Python types str, int,
callable object that accepts a single string argument. If None, float, and complex are useful examples of such callables. If None,
'string' is assumed. str is used.
- choices -- A container of values that should be allowed. If not None, - choices -- A container of values that should be allowed. If not None,
after a command-line argument has been converted to the appropriate after a command-line argument has been converted to the appropriate
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment