From a04fdb50b372b3e1dda5200cc56150b2079ea596 Mon Sep 17 00:00:00 2001 From: Kevin Van Brunt Date: Fri, 7 Aug 2020 16:59:44 -0400 Subject: Moved a comment to better section off code --- cmd2/cmd2.py | 16 ++++++++-------- 1 file 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" -- cgit v1.2.1