예제 #1
0
def main():
    cpp_opts, args = cpp.getopt(sys.argv[1:])
    try:
        opts, args = gnu_getopt(args, 'np:a:i:e:x:',
             ['pool=', 'arch=', 'apt-proxy=', 'ignore-errors=', 'env=', 'no-deps'])
    except getopt.GetoptError, e:
        usage(e)
예제 #2
0
def main():
    cpp_opts, args = cpp.getopt(sys.argv[1:])
    try:
        opts, args = gnu_getopt(args, 'np:a:i:e:x:',
             ['pool=', 'arch=', 'apt-proxy=', 'ignore-errors=', 'env=', 'no-deps'])
    except getopt.GetoptError, e:
        usage(e)
예제 #3
0
def main():
    cpp_opts, args = cpp.getopt(sys.argv[1:])
    try:
        opts, args = gnu_getopt(args, "o:p:h",
                                ["output=",
                                 "pool=",
                                 "bootstrap=",])
    except getopt.GetoptError, e:
        usage(e)
예제 #4
0
파일: cmd_cpp.py 프로젝트: Dude4Linux/fab
def main():
    args = sys.argv[1:]
    if not args or '-h' in args:
        usage()
    
    cpp_opts, args = cpp.getopt(sys.argv[1:])

    if not args:
        usage()

    plan_path = args[0]
    print cpp.cpp(plan_path, cpp_opts)
예제 #5
0
def main():
    args = sys.argv[1:]
    if not args or '-h' in args:
        usage()

    cpp_opts, args = cpp.getopt(sys.argv[1:])

    if not args:
        usage()

    plan_path = args[0]
    print cpp.cpp(plan_path, cpp_opts)
예제 #6
0
파일: cmd_query.py 프로젝트: babarnazmi/fab
def main():
    cpp_opts, args = cpp.getopt(sys.argv[1:])
    try:
        opts, args = gnu_getopt(args, 'p:', ['pool='])
    except getopt.GetoptError, e:
        usage(e)
예제 #7
0
def main():
    cpp_opts, args = cpp.getopt(sys.argv[1:])
    try:
        opts, args = gnu_getopt(args, 'p:', ['pool='])
    except getopt.GetoptError, e:
        usage(e)