Issue #28455: Clarify example of overriding the convert_arg_line_to_args method
Patch by Mariatta Wijaya.
This commit is contained in:
parent
8d761ff045
commit
5493e4723a
|
@ -1958,8 +1958,9 @@ Customizing file parsing
|
|||
The method is called once per line read from the argument file, in order.
|
||||
|
||||
A useful override of this method is one that treats each space-separated word
|
||||
as an argument::
|
||||
as an argument. The following example demonstrates how to do this::
|
||||
|
||||
class MyArgumentParser(argparse.ArgumentParser):
|
||||
def convert_arg_line_to_args(self, arg_line):
|
||||
return arg_line.split()
|
||||
|
||||
|
|
Loading…
Reference in New Issue