>
> def register_commands(subparsers, context):
> """Register devtool subcommands from the deploy plugin"""
> +
> parser_deploy = subparsers.add_parser('deploy-target',
> help='Deploy recipe output files
> to live target machine',
> description='Deploys a recipe\'s
> build output (i.e. the output of the do_install task) to a live target
> machine over ssh. By default, any existing files will be preserved instead of
> being overwritten and will be restored if you run devtool undeploy-target.
> Note: this only deploys the recipe itself and not any runtime dependencies,
> so it is assumed that those have been installed on the target beforehand.',
> @@ -313,6 +433,12 @@ def register_commands(subparsers, context):
> parser_deploy.add_argument('-p', '--no-preserve', help='Do not preserve
> existing files', action='store_true')
> parser_deploy.add_argument('--no-check-space', help='Do not check for
> available space before deploying', action='store_true')
> parser_deploy.add_argument('-P', '--port', default='22', help='Port to
> use for connection to the target')
> + parser_deploy.add_argument('-S', '--strip',
> + help='Strip executables prior to deploying
> (default: %(default)s). '
> + 'The default value of this option can be
> controlled by setting the strip option in the [Deploy] section to True or
> False.',
> +
> default=oe.types.boolean(context.config.get('Deploy', 'strip', default='0')),
> + action='store_true')
> + parser_deploy.add_argument('--no-strip', help='Do not strip executables
> prior to deploy', dest='strip', action='store_false')
> parser_deploy.set_defaults(func=deploy)
sounds like these two new parameters mutual exclude, so something like
this may be useful
https://docs.python.org/3/library/argparse.html#mutual-exclusion
>
> parser_undeploy = subparsers.add_parser('undeploy-target',
> --
> 2.1.4
>
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core