def get_parser():
    """Get a command line parser."""
    parser = libdot.ArgumentParser(description=__doc__)
    parser.add_argument('--base', help='Base path for input/output defaults.')
    parser.add_argument('--input', help='The plugin directory to read.')
    parser.add_argument('--output', help='The nacl directory to write.')
    return parser
def get_parser():
    """Get a command line parser."""
    parser = libdot.ArgumentParser(description=__doc__)
    parser.add_argument('-i', '--inplace', default=False, action='store_true',
                        help='Modify files inline rather than writing stdout.')
    parser.add_argument('files', nargs='+', metavar='files',
                        help='The translations to format.')
    return parser
Esempio n. 3
0
def get_parser(desc, default_toolchain):
    """Get a command line parser."""
    parser = libdot.ArgumentParser(description=desc)
    parser.add_argument('--toolchain', choices=('build', 'pnacl', 'wasm'),
                        default=default_toolchain,
                        help='Which toolchain to use (default: %(default)s).')
    parser.add_argument('-j', '--jobs', type=int,
                        help='Number of jobs to use in parallel.')
    return parser