friendlyargs.fargs module

Decorators that simplify interacting with the FriendlyArgs framework

friendlyargs.fargs.count(short_name, long_name)[source]

Decorates a command function, providing an optional parameter which counts the occurrences of a character.

Useful for things like verbosity flags which look like ‘-vvvv’

Args:
short_name (str):

single character parameter short name, of the form “-a” or “-b”

long_name (str):

verbose descriptive name for the count parameter

friendlyargs.fargs.main()[source]

Decorates the primary entry-point function for your command line application