Пример #1
0
def extract( the_option_parser ) :
    from cloudflu.preferences import get_input
    an_options, an_args = the_option_parser.parse_args()

    a_login_name = an_options.login_name
    if a_login_name == None :
        a_login_name, an_args = get_input( an_args )
        pass

    return a_login_name
Пример #2
0
def extract(the_option_parser):
    from cloudflu.preferences import get_input

    an_options, an_args = the_option_parser.parse_args()

    a_password = an_options.password
    an_identity_file = an_options.identity_file

    if a_password == None and an_identity_file == None:
        a_password, an_args = get_input(an_args)
        an_identity_file, an_args = get_input(an_args)
        pass

    if an_identity_file != None:
        import os.path

        an_identity_file = os.path.expanduser(an_identity_file)
        an_identity_file = os.path.abspath(an_identity_file)
        pass

    a_host_port = an_options.host_port
    if a_host_port == None:
        a_host_port, an_args = get_input(an_args)
        a_host_port = int(a_host_port)
        pass

    a_login_name = an_options.login_name
    if a_login_name == None:
        a_login_name, an_args = get_input(an_args)
        pass

    a_host_name = an_options.host_name
    if a_host_name == None:
        a_host_name, an_args = get_input(an_args)
        pass

    a_command = an_options.command

    return a_password, an_identity_file, a_host_port, a_login_name, a_host_name, a_command
def extract( the_option_parser ) :
    from cloudflu.common import print_d, print_i, print_e
    
    an_options, an_args = the_option_parser.parse_args()

    a_study_name = an_options.study_name
    if a_study_name == None :
        from cloudflu.preferences import get_input
        a_study_name, an_args = get_input( an_args )
        pass
    
    print_d( "a_study_name = '%s'\n" % a_study_name )

    return a_study_name