diff -r b37db216c8e0 Doc/library/argparse.rst --- a/Doc/library/argparse.rst Sun Oct 16 15:42:33 2016 -0700 +++ b/Doc/library/argparse.rst Sun Oct 16 19:47:01 2016 -0700 @@ -1958,10 +1958,14 @@ 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:: - - def convert_arg_line_to_args(self, arg_line): - return arg_line.split() + as an argument. The following demonstrates how to override + :class:`ArgumentParser` and :meth:`convert_arg_line_to_args` method :: + + import argparse + + class MyArgParser(argparse.ArgumentParser): + def convert_arg_line_to_args(self, arg_line): + return arg_line.split() Exiting methods