示例#1
0
def cmd_clean():
    parser = argparse.ArgumentParser()
    parser.add_argument("module", nargs="?",
                        help="name of the module to clean")
    args = parser.parse_args()

    if args.module:
        if not build.clean_one(args.module):
            return False
    else:
        if not clean.clean():
            return False

    return True
示例#2
0
文件: main.py 项目: erik/osbuild
def cmd_clean():
    parser = argparse.ArgumentParser()
    parser.add_argument("module", nargs="?",
                        help="name of the module to clean")
    parser.add_argument("--new-files", action="store_true",
                        help="remove also new files")
    args = parser.parse_args()

    if args.module:
        if not build.clean_one(args.module):
            return False
    else:
        if not clean.clean(new_files=args.new_files):
            return False

    return True
示例#3
0
def cmd_clean():
    parser = argparse.ArgumentParser()
    parser.add_argument("module",
                        nargs="?",
                        help="name of the module to clean")
    parser.add_argument("--new-files",
                        action="store_true",
                        help="remove also new files")
    args = parser.parse_args()

    if args.module:
        if not build.clean_one(args.module):
            return False
    else:
        if not clean.clean(new_files=args.new_files):
            return False

    return True