@@ -1599,13 +1599,17 @@ def get_visible_commands(self) -> List[str]:
15991599 return commands
16001600
16011601 def get_alias_names (self ) -> List [str ]:
1602- """Return a list of alias names. """
1602+ """Return list of current alias names"""
16031603 return list (self .aliases )
16041604
16051605 def get_macro_names (self ) -> List [str ]:
1606- """Return a list of macro names. """
1606+ """Return list of current macro names"""
16071607 return list (self .macros )
16081608
1609+ def get_settable_names (self ) -> List [str ]:
1610+ """Return list of current settable names"""
1611+ return list (self .settable )
1612+
16091613 def get_commands_aliases_and_macros_for_completion (self ) -> List [str ]:
16101614 """Return a list of visible commands, aliases, and macros for tab completion"""
16111615 visible_commands = set (self .get_visible_commands ())
@@ -2832,7 +2836,7 @@ def show(self, args: argparse.Namespace, parameter: str='') -> None:
28322836 set_parser .add_argument ('-a' , '--all' , action = 'store_true' , help = 'display read-only settings as well' )
28332837 set_parser .add_argument ('-l' , '--long' , action = 'store_true' , help = 'describe function of parameter' )
28342838 setattr (set_parser .add_argument ('param' , nargs = '?' , help = 'parameter to set or view' ),
2835- ACTION_ARG_CHOICES , settable )
2839+ ACTION_ARG_CHOICES , get_settable_names )
28362840 set_parser .add_argument ('value' , nargs = '?' , help = 'the new value for settable' )
28372841
28382842 @with_argparser (set_parser )
0 commit comments