Skip to content

knack v0.5.0

Compare
Choose a tag to compare
@tjprescott tjprescott released this 07 Nov 20:30
e528db1
  • Adds support for positional arguments with the .positional helper method on ArgumentsContext.
  • Removes the necessity for the type field in help.py. This information can be inferred from the class, so specifying it causes unnecessary crashes.
  • Adds support for examining the result of a command after a call to invoke. The raw object, error (if any) an exit code are accessible.
  • Adds support for accessing the command instance from inside custom commands by putting the special argument cmd in the signature.
  • Fixes an issue with the default config directory. It use to be .cli and is now based on the CLI name.
  • Fixes regression in knack 0.4.5 in behavior when cli_name --verbose/debug is used. Displays the welcome message as intended.
  • Adds ability to specify line width for help text display.