rotifer.core.cli.version#

rotifer.core.cli.version(program='', description='', version='', tags='', authors='', program_attrs={'attrs': ['bold'], 'color': 'red'}, description_attrs={'attrs': [], 'color': 'green'}, version_attrs={'attrs': [], 'color': 'cyan'}, tag_attrs={'attrs': [], 'color': 'cyan'}, authors_attrs={'attrs': [], 'color': 'cyan'})[source]#

Pre-formatted version style#

Parameters: program: PROGRAM NAME [String] version: VERSION NUMBER [String] authors: AUTHORS NAME [String] description: SHORT DESCRITPTION [String]

Format Parameters: program_attrs: FORMAT STYLE [Dictionary] description_attrs: FORMAT STYLE [Dictionary] version_attrs: FORMAT STYLE [Dictionary] authors_attrs: FORMAT STYLE [Dictionary]

Format Syle: color: [‘grey’, ‘red’, ‘green’, yellow’, ‘blue’, ‘magenta’, ‘cyan’, ‘white’] attrs: [‘bold’, ‘dark’, ‘underline’, ‘blink’, ‘reverse’, ‘concealed’] —— Usage: > parser.add_argument(–version,

action = ‘version’, version = corecli.version(program = ‘my program’,

version = ‘0.002’ authors = ‘Me’, program_attrs = {color: ‘cyan’}) # Change color to red

)

> parser.add_argument(–version,

action = ‘version’, version = corecli.version(program = ‘my program’,

version = ‘0.002’ authors = ‘Me’, program_attrs = {color: ‘cyan’,

attrs: [‘bold’, ‘underline’]}) # Change color to red, bold and underline

)