def parse_args(): parser = argparse.ArgumentParser(description=''' Massage manifest files from the build to produce images. ''', epilog=''' The --cwd and --group options apply to subsequent --manifest arguments. Each input --manifest is assigned to the preceding --output argument file. Any input --manifest that precedes all --output arguments just supplies auxiliary files implicitly required by other (later) input manifests, but does not add all its files to any --output manifest. This is used for shared libraries and the like. ''') parser.add_argument('--build-id-file', required=True, metavar='FILE', help='Output build ID list') parser.add_argument('--depfile', metavar='DEPFILE', help='Ninja depfile to write') parser.add_argument('--binary', action=input_binary_action, default=[], metavar='PATH', help='Take matching binaries from auxiliary manifests') parser.add_argument('--stripped-dir', required=True, metavar='STRIPPED_DIR', help='Directory to hold stripped copies when needed') return manifest.common_parse_args(parser)
def parse_args(): parser = argparse.ArgumentParser(description=''' Massage manifest files from the build to produce images. ''', epilog=''' The --cwd and --group options apply to subsequent --manifest arguments. Each input --manifest is assigned to the preceding --output argument file. Any input --manifest that precedes all --output arguments just supplies auxiliary files implicitly required by other (later) input manifests, but does not add all its files to any --output manifest. This is used for shared libraries and the like. ''', fromfile_prefix_chars='@') parser.add_argument('--build-id-dir', required=False, metavar='DIR', help='.build-id directory to populate when stripping') parser.add_argument( '--toolchain-lib-dir', default=[], action='append', metavar='DIR', help='Path to a toolchain library directory (multiple allowed)') parser.add_argument('--depfile', metavar='DEPFILE', help='Ninja depfile to write') parser.add_argument('--stripped-dir', required=True, metavar='STRIPPED_DIR', help='Directory to hold stripped copies when needed') return manifest.common_parse_args(parser)