On Mon, 4 Mar 2019 at 10:30, Robert Yang <[email protected]> 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
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Reply via email to