diff options
author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2018-09-27 14:56:36 -0400 |
---|---|---|
committer | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2018-09-27 14:56:36 -0400 |
commit | ee832d2fdd0d83dd2ed9d6945ba04968fc92fcdc (patch) | |
tree | e1cb4e9754b04f533fb0c8ab751535ae18898e15 /cmd2/cmd2.py | |
parent | d0f3a6078c944cbfd1406a5e2f01f9cf56f2f5c1 (diff) | |
download | cmd2-git-ee832d2fdd0d83dd2ed9d6945ba04968fc92fcdc.tar.gz |
Fixed comment
Diffstat (limited to 'cmd2/cmd2.py')
-rw-r--r-- | cmd2/cmd2.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cmd2/cmd2.py b/cmd2/cmd2.py index 9b338668..b361d276 100644 --- a/cmd2/cmd2.py +++ b/cmd2/cmd2.py @@ -2283,7 +2283,7 @@ class Cmd(cmd.Cmd): elif not args.name: self.do_help(['alias', 'delete']) else: - # Get rid of duplicates and strip quotes since the argparse decorator for alias command preserves them + # Get rid of duplicates and strip quotes since the argparse decorator for do_alias() preserves them aliases_to_delete = [utils.strip_quotes(cur_name) for cur_name in utils.remove_duplicates(args.name)] for cur_name in aliases_to_delete: @@ -2296,7 +2296,7 @@ class Cmd(cmd.Cmd): def alias_list(self, args: argparse.Namespace): """ Lists some or all aliases """ if args.name: - # Get rid of duplicates and strip quotes since the argparse decorator for alias command preserves them + # Get rid of duplicates and strip quotes since the argparse decorator for do_alias() preserves them names_to_view = [utils.strip_quotes(cur_name) for cur_name in utils.remove_duplicates(args.name)] for cur_name in names_to_view: @@ -2472,7 +2472,7 @@ class Cmd(cmd.Cmd): elif not args.name: self.do_help(['macro', 'delete']) else: - # Get rid of duplicates and strip quotes since the argparse decorator for alias command preserves them + # Get rid of duplicates and strip quotes since the argparse decorator for do_macro() preserves them macros_to_delete = [utils.strip_quotes(cur_name) for cur_name in utils.remove_duplicates(args.name)] for cur_name in macros_to_delete: @@ -2485,7 +2485,7 @@ class Cmd(cmd.Cmd): def macro_list(self, args: argparse.Namespace): """ Lists some or all macros """ if args.name: - # Get rid of duplicates and strip quotes since the argparse decorator for alias command preserves them + # Get rid of duplicates and strip quotes since the argparse decorator for do_macro() preserves them names_to_view = [utils.strip_quotes(cur_name) for cur_name in utils.remove_duplicates(args.name)] for cur_name in names_to_view: |