summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorEric Lin <anselor@gmail.com>2020-08-04 13:46:48 -0400
committeranselor <anselor@gmail.com>2020-08-04 15:24:53 -0400
commit1a82b37b6c23490b1d9127095e3ee4f2db21a85b (patch)
treeeb45b08c177ec9d032436af5d158a0ad065dc967 /docs
parentc983abaa881a3ac6110a90194def660489b2d5cc (diff)
downloadcmd2-git-1a82b37b6c23490b1d9127095e3ee4f2db21a85b.tar.gz
Marked with_arparser_and_unknown_args deprecated and consolidated
implementation as an option to with_argparser instead.
Diffstat (limited to 'docs')
-rw-r--r--docs/features/argument_processing.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/features/argument_processing.rst b/docs/features/argument_processing.rst
index f98a686a..9e65742e 100644
--- a/docs/features/argument_processing.rst
+++ b/docs/features/argument_processing.rst
@@ -272,7 +272,7 @@ Here's what it looks like::
dir_parser = argparse.ArgumentParser()
dir_parser.add_argument('-l', '--long', action='store_true', help="display in long format with one item per line")
- @with_argparser_and_unknown_args(dir_parser)
+ @with_argparser(dir_parser, with_unknown_args=True)
def do_dir(self, args, unknown):
"""List contents of current directory."""
# No arguments for this command