Skip to content

2.1.2 (July 5, 2021)

Compare
Choose a tag to compare
@kmvanbrunt kmvanbrunt released this 05 Jul 15:42
· 205 commits to master since this release
  • Enhancements
    • Added the following accessor methods for cmd2-specific attributes to the argparse.Action class
      • get_choices_callable()
      • set_choices_provider()
      • set_completer()
      • get_descriptive_header()
      • set_descriptive_header()
      • get_nargs_range()
      • set_nargs_range()
      • get_suppress_tab_hint()
      • set_suppress_tab_hint()
  • Deprecations
    • Now that set_choices_provider() and set_completer() have been added as methods to the
      argparse.Action class, the standalone functions of the same name will be removed in version
      2.2.0. To update to the new convention, do the following:
      • Change set_choices_provider(action, provider) to action.set_choices_provider(provider)
      • Change set_completer(action, completer) to action.set_completer(completer)