Thanks, looks good, I will update it. // Robert
Sent from mobile phone > 在 2019年3月4日,18:57,Burton, Ross <[email protected]> 写道: > >> 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
