def add_arguments(self, *, parser): # noqa: D102 parser.add_argument('--build-base', default='build', help='The base path for all build directories (' 'default: build)') parser.add_argument('--install-base', default='install', help='The base path for all install prefixes (' 'default: install)') parser.add_argument('--merge-install', action='store_true', help='Merge all install prefixes into a single ' 'location') parser.add_argument('--bundle-base', default='bundle', help='The base path for all bundle prefixes (' 'default: bundle)') parser.add_argument( '--include-sources', action='store_true', help='Include a sources tarball for all packages installed into ' 'the bundle via apt') parser.add_argument( '--bundle-version', default=2, type=int, help='Version of bundle to generate') parser.add_argument( '-U', '--upgrade', action='store_true', help='Upgrade all dependencies in the bundle to their latest ' 'versions' ) add_executor_arguments(parser) add_event_handler_arguments(parser) add_package_arguments(parser) decorated_parser = DestinationCollectorDecorator(parser) add_task_arguments(decorated_parser, 'colcon_bundle.task.bundle', ) self.task_argument_destinations = decorated_parser.get_destinations() add_installer_arguments(decorated_parser)
def add_arguments(self, *, parser): # noqa: D102 parser.add_argument('--build-base', default='build', help='The base path for all build directories (' 'default: build)') parser.add_argument('--install-base', default='install', help='The base path for all install prefixes (' 'default: install)') parser.add_argument('--merge-install', action='store_true', help='Merge all install prefixes into a single ' 'location') parser.add_argument('--bundle-base', default='bundle', help='The base path for all bundle prefixes (' 'default: bundle)') parser.add_argument( '--include-sources', action='store_true', help='Include a sources tarball for all packages installed into ' 'the bundle via apt') parser.add_argument('--bundle-version', default=1, type=int, help='Version of bundle to generate') parser.add_argument( '--use-cached-dependencies', action='store_true', help='Use this to skip download and installation of ' 'dependencies for quicker development cycles. This requires ' 'that you have already run "colcon bundle" successfully ' 'and all intermediate artifacts have been generated') add_executor_arguments(parser) add_event_handler_arguments(parser) add_package_arguments(parser) decorated_parser = DestinationCollectorDecorator(parser) add_task_arguments( decorated_parser, 'colcon_bundle.task.bundle', ) self.task_argument_destinations = decorated_parser.get_destinations() add_installer_arguments(decorated_parser)