diff options
author | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2020-08-07 16:59:44 -0400 |
---|---|---|
committer | Kevin Van Brunt <kmvanbrunt@gmail.com> | 2020-08-07 16:59:56 -0400 |
commit | a04fdb50b372b3e1dda5200cc56150b2079ea596 (patch) | |
tree | df3c5326f4110a680c8afe05cfab9da728afaff9 /cmd2/cmd2.py | |
parent | dc94af322089e2fc2c1fb1be22e363e96061f2e8 (diff) | |
download | cmd2-git-a04fdb50b372b3e1dda5200cc56150b2079ea596.tar.gz |
Moved a comment to better section off code
Diffstat (limited to 'cmd2/cmd2.py')
-rw-r--r-- | cmd2/cmd2.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/cmd2/cmd2.py b/cmd2/cmd2.py index 82e520b7..975f4635 100644 --- a/cmd2/cmd2.py +++ b/cmd2/cmd2.py @@ -2623,6 +2623,10 @@ class Cmd(cmd.Cmd): if saved_readline_settings is not None: self._restore_readline(saved_readline_settings) + ############################################################# + # Parsers and functions for alias command and subcommands + ############################################################# + # Top-level parser for alias alias_description = ("Manage aliases\n" "\n" @@ -2641,10 +2645,6 @@ class Cmd(cmd.Cmd): handler = args.get_handler() handler(args) - ############################################ - # Add subcommands to alias - ############################################ - # alias -> create alias_create_description = "Create or overwrite an alias" @@ -2750,6 +2750,10 @@ class Cmd(cmd.Cmd): for cur_alias in sorted(self.aliases, key=self.default_sort_key): self.poutput("alias create {} {}".format(cur_alias, self.aliases[cur_alias])) + ############################################################# + # Parsers and functions for macro command and subcommands + ############################################################# + # Top-level parser for macro macro_description = ("Manage macros\n" "\n" @@ -2768,10 +2772,6 @@ class Cmd(cmd.Cmd): handler = args.get_handler() handler(args) - ############################################ - # Add subcommands to macro - ############################################ - # macro -> create macro_create_help = "create or overwrite a macro" macro_create_description = "Create or overwrite a macro" |