Exemple #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)
Exemple #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)
Exemple #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)
Exemple #4
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)
Exemple #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)
Exemple #6
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)
Exemple #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)