@@ -2660,7 +2660,7 @@ def do_alias(self, args: argparse.Namespace) -> None:
2660
2660
" alias create show_log !cat \" log file.txt\" \n "
2661
2661
" alias create save_results print_results \" >\" out.txt\n " )
2662
2662
2663
- alias_create_parser = DEFAULT_ARGUMENT_PARSER ('create' , add_help = False , description = alias_create_description ,
2663
+ alias_create_parser = DEFAULT_ARGUMENT_PARSER (add_help = False , description = alias_create_description ,
2664
2664
epilog = alias_create_epilog )
2665
2665
alias_create_parser .add_argument ('name' , help = 'name of this alias' )
2666
2666
alias_create_parser .add_argument ('command' , help = 'what the alias resolves to' ,
@@ -2705,7 +2705,7 @@ def _alias_create(self, args: argparse.Namespace) -> None:
2705
2705
alias_delete_help = "delete aliases"
2706
2706
alias_delete_description = "Delete specified aliases or all aliases if --all is used"
2707
2707
2708
- alias_delete_parser = DEFAULT_ARGUMENT_PARSER ('delete' , add_help = False , description = alias_delete_description )
2708
+ alias_delete_parser = DEFAULT_ARGUMENT_PARSER (add_help = False , description = alias_delete_description )
2709
2709
alias_delete_parser .add_argument ('names' , nargs = argparse .ZERO_OR_MORE , help = 'alias(es) to delete' ,
2710
2710
choices_method = _get_alias_completion_items , descriptive_header = 'Value' )
2711
2711
alias_delete_parser .add_argument ('-a' , '--all' , action = 'store_true' , help = "delete all aliases" )
@@ -2733,7 +2733,7 @@ def _alias_delete(self, args: argparse.Namespace) -> None:
2733
2733
"\n "
2734
2734
"Without arguments, all aliases will be listed." )
2735
2735
2736
- alias_list_parser = DEFAULT_ARGUMENT_PARSER ('list' , add_help = False , description = alias_list_description )
2736
+ alias_list_parser = DEFAULT_ARGUMENT_PARSER (add_help = False , description = alias_list_description )
2737
2737
alias_list_parser .add_argument ('names' , nargs = argparse .ZERO_OR_MORE , help = 'alias(es) to list' ,
2738
2738
choices_method = _get_alias_completion_items , descriptive_header = 'Value' )
2739
2739
@@ -2811,7 +2811,7 @@ def do_macro(self, args: argparse.Namespace) -> None:
2811
2811
" Because macros do not resolve until after hitting Enter, tab completion\n "
2812
2812
" will only complete paths while typing a macro." )
2813
2813
2814
- macro_create_parser = DEFAULT_ARGUMENT_PARSER ('create' , add_help = False , description = macro_create_description ,
2814
+ macro_create_parser = DEFAULT_ARGUMENT_PARSER (add_help = False , description = macro_create_description ,
2815
2815
epilog = macro_create_epilog )
2816
2816
macro_create_parser .add_argument ('name' , help = 'name of this macro' )
2817
2817
macro_create_parser .add_argument ('command' , help = 'what the macro resolves to' ,
@@ -2902,7 +2902,7 @@ def _macro_create(self, args: argparse.Namespace) -> None:
2902
2902
# macro -> delete
2903
2903
macro_delete_help = "delete macros"
2904
2904
macro_delete_description = "Delete specified macros or all macros if --all is used"
2905
- macro_delete_parser = DEFAULT_ARGUMENT_PARSER ('delete' , add_help = False , description = macro_delete_description )
2905
+ macro_delete_parser = DEFAULT_ARGUMENT_PARSER (add_help = False , description = macro_delete_description )
2906
2906
macro_delete_parser .add_argument ('names' , nargs = argparse .ZERO_OR_MORE , help = 'macro(s) to delete' ,
2907
2907
choices_method = _get_macro_completion_items , descriptive_header = 'Value' )
2908
2908
macro_delete_parser .add_argument ('-a' , '--all' , action = 'store_true' , help = "delete all macros" )
@@ -2930,7 +2930,7 @@ def _macro_delete(self, args: argparse.Namespace) -> None:
2930
2930
"\n "
2931
2931
"Without arguments, all macros will be listed." )
2932
2932
2933
- macro_list_parser = DEFAULT_ARGUMENT_PARSER ('list' , add_help = False , description = macro_list_description )
2933
+ macro_list_parser = DEFAULT_ARGUMENT_PARSER (add_help = False , description = macro_list_description )
2934
2934
macro_list_parser .add_argument ('names' , nargs = argparse .ZERO_OR_MORE , help = 'macro(s) to list' ,
2935
2935
choices_method = _get_macro_completion_items , descriptive_header = 'Value' )
2936
2936
0 commit comments