diff options
author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2021-02-19 21:40:15 -0500 |
---|---|---|
committer | Todd Leonhardt <todd.leonhardt@gmail.com> | 2021-02-19 21:40:15 -0500 |
commit | 486b8c726a7d657ef320e68598077c31fa664790 (patch) | |
tree | 46b53d0f530d6ae273c4379272684ee80026658a /examples/arg_decorators.py | |
parent | 3e180a810e9c4b9d251c135667d1d150b0bbd0dd (diff) | |
download | cmd2-git-486b8c726a7d657ef320e68598077c31fa664790.tar.gz |
Fixed black, isort, flake8, and doc8 issues
Diffstat (limited to 'examples/arg_decorators.py')
-rwxr-xr-x | examples/arg_decorators.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/arg_decorators.py b/examples/arg_decorators.py index 49ea9a10..a0d08d43 100755 --- a/examples/arg_decorators.py +++ b/examples/arg_decorators.py @@ -16,8 +16,7 @@ class ArgparsingApp(cmd2.Cmd): fsize_parser = cmd2.Cmd2ArgumentParser(description='Obtain the size of a file') fsize_parser.add_argument('-c', '--comma', action='store_true', 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=cmd2.Cmd.path_complete) + fsize_parser.add_argument('file_path', help='path of file', completer=cmd2.Cmd.path_complete) @cmd2.with_argparser(fsize_parser) def do_fsize(self, args: argparse.Namespace) -> None: |