Ejemplo n.º 1
0
def populate_argument_parser(parser):
    parser.add_argument('repo', help="url or name of repo [e.g. dae]")
    parser.add_argument('dir', nargs='?', help="directory to clone to")
    provider = get_default_provider()
    parser.add_argument(
        '-p', '--provider', default=provider,
        help="Git service provider code/github. [%s]" % provider)
Ejemplo n.º 2
0
def populate_argument_parser(parser):
    parser.add_argument('repo', help="url or name of repo [e.g. dae]")
    parser.add_argument('dir', nargs='?', help="directory to clone to")
    provider = get_default_provider()
    parser.add_argument('-p',
                        '--provider',
                        default=provider,
                        help="Git service provider code/github. [%s]" %
                        provider)
Ejemplo n.º 3
0
def populate_argument_parser(parser):
    parser.add_argument('upstream', help="name of upstream repo [e.g. dae]")
    code_username = get_code_username()
    if code_username:
        parser.add_argument('origin', nargs='?',
                            help="name of my fork [e.g. hongqn/dae] "
                                 "[default %s/UPSTREAM]" % code_username)
    else:
        parser.add_argument('origin',
                            help="name of my fork [e.g.  hongqn/dae]")
    parser.add_argument('dir', nargs='?', help="directory to clone")
    provider = get_default_provider()
    parser.add_argument('-p', '--provider', default=provider,
                        help="Git service provider code/github. [%s]" % provider)
Ejemplo n.º 4
0
def populate_argument_parser(parser):
    parser.add_argument('upstream', help="name of upstream repo [e.g. dae]")
    code_username = get_code_username()
    if code_username:
        parser.add_argument('origin',
                            nargs='?',
                            help="name of my fork [e.g. hongqn/dae] "
                            "[default %s/UPSTREAM]" % code_username)
    else:
        parser.add_argument('origin',
                            help="name of my fork [e.g.  hongqn/dae]")
    parser.add_argument('dir', nargs='?', help="directory to clone")
    provider = get_default_provider()
    parser.add_argument('-p',
                        '--provider',
                        default=provider,
                        help="Git service provider code/github. [%s]" %
                        provider)