setup parsing

Code which parses the command line arguments for the setup command.

flash.flmake.setup_parse.usage()[source]

Print usage info and exit

flash.flmake.setup_parse.cleanupCommandLine(args)[source]

Return a lists where all single - options are converted to –

flash.flmake.setup_parse.expandShortcuts(args, RecLimit=255)[source]

Expand all shortcuts specified in args. No more than RecLimit expansions should be required. This limit can be used to detect circular references

flash.flmake.setup_parse.setSetupVars(strlist)[source]

Given a list of strings. Identifies those of the form A=B and updates gvars.setup_vars. Returns unprocessed list of strings

flash.flmake.setup_parse.custom_getopt(longoptions)[source]

Parse command line arguments, working in gnu mode using only longoptions. GNU MODE = allow non-option arguments to be followed by options. We also allow user to use shortcuts as well as define variables like make

Previous topic

setup global variables

Next topic

template

This Page