commandify API

commandify – turn functions into command line args

Decorators/functions for turning functions into command line arguments

exception commandify.commandify.CommandifyError(message, error_type='code')

Exceptions thrown by commandify

commandify.commandify.command(*dec_args, **dec_kwargs)

Decorator for adding to sub commands

commandify.commandify.commandify()

Turns decorated functions into command line args

Finds the main_command and all commands and generates command line args from these.

commandify.commandify.main_command(*dec_args, **dec_kwargs)

Decorator for adding to main function (entry point)

Should only be applied to one function

Table Of Contents

Previous topic

Commandify Documentation

Next topic

Commandify Testing

This Page