summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cmd2/cmd2.py16
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"