Example #1
0
def OPTIONAL_WORKSPACE(parser):
    '''
    Define `workspace` as option, defaulting to current directory
    '''
    parser.arg('--workspace',
               '-w',
               metavar=arg_metavar.WORKSPACE,
               type=Workspace,
               default=Workspace.for_current_working_directory(),
               help=arg_help.WORKSPACE)
Example #2
0
 def declare(self, arg):
     arg(WORKSPACE_defaulting_to(Workspace.for_current_working_directory()))
Example #3
0
 def declare(self, arg):
     arg(WORKSPACE_defaulting_to(Workspace.for_current_working_directory()))