<s> """<STR_LIT>""" <EOL> from qisys import ui <EOL> import qisys . parsers <EOL> import qibuild . worktree <EOL> def configure_parser ( parser ) : <EOL> qisys . parsers . worktree_parser ( parser ) <EOL> parser . add_argument ( "<STR_LIT:name>" , type = ui . valid_filename ) <EOL> parser . add_argument ( "<STR_LIT>" , "<STR_LIT>" , dest = "<STR_LIT>" ) <EOL> parser . add_argument ( "<STR_LIT>" , "<STR_LIT>" , dest = "<STR_LIT>" , action = "<STR_LIT>" ) <EOL> parser . add_argument ( "<STR_LIT>" ) <EOL> parser . add_argument ( "<STR_LIT>" , "<STR_LIT>" , dest = "<STR_LIT>" ) <EOL> parser . add_argument ( "<STR_LIT>" , action = "<STR_LIT:store_true>" ) <EOL> parser . add_argument ( "<STR_LIT>" , action = "<STR_LIT:store_true>" , <EOL> help = "<STR_LIT>" ) <EOL> parser . set_defaults ( default = False , host = None ) <EOL> def do ( args ) : <EOL> worktree = qisys . parsers . get_worktree ( args , raises = False ) <EOL> name = args . name <EOL> toolchain = args . toolchain <EOL> profiles = args . profiles <EOL> ide = args . ide <EOL> cmake_generator = args . cmake_generator <EOL> qibuild . config . add_build_config ( name , toolchain = toolchain , profiles = profiles , <EOL> ide = ide , cmake_generator = cmake_generator , <EOL> host = args . host ) <EOL> if args . default : <EOL> if worktree : <EOL> build_worktree = qibuild . worktree . BuildWorkTree ( worktree ) <EOL> build_worktree . set_default_config ( name ) <EOL> else : <EOL> ui . fatal ( "<STR_LIT>" ) </s>
