summaryrefslogtreecommitdiff
path: root/examples/arg_decorators.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/arg_decorators.py')
-rwxr-xr-xexamples/arg_decorators.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/arg_decorators.py b/examples/arg_decorators.py
index a085341d..9ffcd8ce 100755
--- a/examples/arg_decorators.py
+++ b/examples/arg_decorators.py
@@ -18,7 +18,7 @@ class ArgparsingApp(cmd2.Cmd):
help='add comma for thousands separator')
fsize_parser.add_argument('-u', '--unit', choices=['MB', 'KB'], help='unit to display size in')
fsize_parser.add_argument('file_path', help='path of file',
- completer_method=cmd2.Cmd.path_complete)
+ completer=cmd2.Cmd.path_complete)
@cmd2.with_argparser(fsize_parser)
def do_fsize(self, args: argparse.Namespace) -> None: