Ejemplo n.º 1
0
def handle_arguments(args):
    parser = argparse.ArgumentParser(args[0])
    add_standard_arguments(parser)
    parser.add_argument('-s', '--sandboxroot', dest='sandbox_root', type=str)
    parser.add_argument('-c', '--component', type=str)
    parser.add_argument('-t', type=str, help='tag for tag-info command')
    parser.add_argument('-b', type=str, help='branch for branch command')
    parser.add_argument('--to',
                        type=str,
                        help='target branch/component for branch command')
    parser.add_argument('--source', type=str, help='source branch for pull')

    parser.add_argument('--revno', action='store_true')
    parser.add_argument('--tree', action='store_true')
    parser.add_argument('--tags', action='store_true')
    parser.add_argument('--info', action='store_true')
    parser.add_argument('--status', action='store_true')
    parser.add_argument('--tag-info', action='store_true')
    parser.add_argument('--branch', action='store_true')
    parser.add_argument('--pull', action='store_true')

    parser.add_argument('--push', action='store_true')
    parser.add_argument('--merge', action='store_true')
    parser.add_argument('--add', action='store_true')
    parser.add_argument('--ci', action='store_true')
    parser.add_argument('--revert', action='store_true')
    parser.add_argument('--update', action='store_true')
    parser.add_argument('--tag', action='store_true')
    global OPTIONS
    OPTIONS = parser.parse_args(args[1:])
Ejemplo n.º 2
0
def handle_arguments(args):
    parser = argparse.ArgumentParser(args[0])
    add_standard_arguments(parser)
    parser.add_argument(
        '-r',
        '--reporoot',
        type=str,
        default=
        'bzr+ssh://bazaar.example.com/reporoot',  ## TODO make part of conf
        help='root of repository')
    parser.add_argument('-b',
                        '--branches',
                        help='only show branches',
                        action='store_true')
    parser.add_argument('--branch',
                        help='only show information about this branch')
    parser.add_argument('-c',
                        '--components',
                        help='only show components',
                        action='store_true')
    parser.add_argument('--component',
                        help='only show information for this component')
    parser.add_argument('-a',
                        '--aspects',
                        help='only show aspects',
                        action='store_true')
    global OPTIONS
    OPTIONS = parser.parse_args(args[1:])
Ejemplo n.º 3
0
def handle_arguments(args):
    parser = argparse.ArgumentParser(args[0])
    add_standard_arguments(parser)
    parser.add_argument('-b', '--branch', help='only check this branch', default='')
    parser.add_argument('-s', '--site', help='check this site server', default='10.10.10.100')
    global OPTIONS
    OPTIONS = parser.parse_args(args[1:])
Ejemplo n.º 4
0
def handle_arguments(args):
    parser = argparse.ArgumentParser(args[0])
    add_standard_arguments(parser)
    parser.add_argument('-s', '--sandboxroot', dest='sandbox_root', type=str)
    parser.add_argument('-c', '--component', type=str)
    parser.add_argument('-t', type=str, help='tag for tag-info command')
    parser.add_argument('-b', type=str, help='branch for branch command')
    parser.add_argument('--to', type=str, help='target branch/component for branch command')
    parser.add_argument('--source', type=str, help='source branch for pull')

    parser.add_argument('--revno', action='store_true')
    parser.add_argument('--tree', action='store_true')
    parser.add_argument('--tags', action='store_true')
    parser.add_argument('--info', action='store_true')
    parser.add_argument('--status', action='store_true')
    parser.add_argument('--tag-info', action='store_true')
    parser.add_argument('--branch', action='store_true')
    parser.add_argument('--pull', action='store_true')

    parser.add_argument('--push', action='store_true')
    parser.add_argument('--merge', action='store_true')
    parser.add_argument('--add', action='store_true')
    parser.add_argument('--ci', action='store_true')
    parser.add_argument('--revert', action='store_true')
    parser.add_argument('--update', action='store_true')
    parser.add_argument('--tag', action='store_true')
    global OPTIONS
    OPTIONS = parser.parse_args(args[1:])
Ejemplo n.º 5
0
def handle_arguments(args):
    parser = argparse.ArgumentParser(args[0])
    add_standard_arguments(parser)
    parser.add_argument('-r', '--reporoot', type=str,
                        default='bzr+ssh://bazaar.example.com/reporoot',## TODO make part of conf
                        help='root of repository')
    parser.add_argument('-b', '--branches', help='only show branches', action='store_true')
    parser.add_argument('--branch', help='only show information about this branch')
    parser.add_argument('-c', '--components', help='only show components', action='store_true')
    parser.add_argument('--component', help='only show information for this component')
    parser.add_argument('-a', '--aspects', help = 'only show aspects', action='store_true')
    global OPTIONS
    OPTIONS = parser.parse_args(args[1:])
Ejemplo n.º 6
0
def handle_arguments(args):
    parser = argparse.ArgumentParser(args[0])
    add_standard_arguments(parser)
    parser.add_argument('-b',
                        '--branch',
                        help='only check this branch',
                        default='')
    parser.add_argument('-s',
                        '--site',
                        help='check this site server',
                        default='10.10.10.100')
    global OPTIONS
    OPTIONS = parser.parse_args(args[1:])