Skip to content

0.9.17 (September 23, 2019)

Compare
Choose a tag to compare
@kmvanbrunt kmvanbrunt released this 24 Sep 02:55
· 1179 commits to master since this release
  • Bug Fixes
    • Fixed a bug when using WSL when all Windows paths have been removed from $PATH
    • Fixed a bug when running a cmd2 application on Linux without Gtk libraries installed
  • Enhancements
    • No longer treating empty text scripts as an error condition
    • Allow dynamically extending a cmd2.Cmd object instance with a do_xxx method at runtime
    • Choices/Completer functions can now be passed a dictionary that maps command-line tokens to their argparse argument. This is helpful when one argument determines what is tab completed for another argument. If these functions have an argument called arg_tokens, then AutoCompleter will automatically pass this dictionary to them.
    • Added CompletionError class that can be raised during argparse-based tab completion and printed to the user
    • Added the following convenience methods
      • Cmd.in_script() - return whether a text script is running
      • Cmd.in_pyscript() - return whether a pyscript is running