You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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