summaryrefslogtreecommitdiff
path: root/examples/python_scripting.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/python_scripting.py')
-rwxr-xr-xexamples/python_scripting.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/python_scripting.py b/examples/python_scripting.py
index a2892dc8..95cfce44 100755
--- a/examples/python_scripting.py
+++ b/examples/python_scripting.py
@@ -18,7 +18,7 @@ import argparse
import functools
import os
-from cmd2 import Cmd, CmdResult, with_argument_list, with_argparser_and_list
+from cmd2 import Cmd, CmdResult, with_argument_list, with_argparser_and_unknown_args
class CmdLineApp(Cmd):
@@ -89,7 +89,7 @@ class CmdLineApp(Cmd):
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_list(dir_parser)
+ @with_argparser_and_unknown_args(dir_parser)
def do_dir(self, args, unknown):
"""List contents of current directory."""
# No arguments for this command