On Mon, 4 Mar 2019 at 10:30, Robert Yang <liezhi.y...@windriver.com> wrote: > + arg_parse.add_argument("--no-ssl", > + help="Use http instead of https protocol", > + action="store_true")
If you do this instead: arg_parse.add_argument("--no-ssl", help="Use http instead of https protocol", dest="protocol", action="store_const", const="http", default="https") Then you can just use args.protocol instead of having to pass around the protocol name. Ross -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core