Newer
Older
'Download and unpack the given source package from each runtime '
'if it exists, for use in regression testing. May be repeated.'
)
)
parser.add_argument(
'--unpack-sources-into', metavar='PATH', default='.',
help=(
'Unpack any source packages specified by --unpack-source '
'into PATH/RUNTIME/SOURCE (default: ./RUNTIME/SOURCE).'
)
)
parser.add_argument(
'--versioned-directories', action='store_true', default=True,
help=(
'Include version number in unpacked runtime directories '
'[default]'
)
)
parser.add_argument(
'--no-versioned-directories', action='store_false',
dest='versioned_directories',
help=(
'Do not include version number in unpacked runtime directories'
)
)
parser.add_argument(
'runtime',
default='',
metavar='NAME[="DETAILS"]',
help=(
'Runtime to download, in the form NAME or NAME="DETAILS". '
'DETAILS is a JSON object containing something like '
'{"path": "../prebuilt", "suite: "scout", "version": "latest", '
'"architecture": "amd64,i386"}, or the '
'path to a file with the same JSON object in. All JSON fields '
'are optional.'
),
)
try:
args = parser.parse_args()
args.include_sdk_debug = args.include_sdk_debug or args.include_sdk
args.include_sdk_runtime = args.include_sdk_runtime or args.include_sdk
args.include_sdk_sysroot = args.include_sdk_sysroot or args.include_sdk
Main(**vars(args)).run()
except InvocationError as e:
parser.error(str(e))
if __name__ == '__main__':
main()