>>> On 28.09.18 at 17:53, <wei.l...@citrix.com> wrote: > At the moment the ordering of the options matter, which means if "xen" > is not the first option we can lose output. > > I think one easy way of improving is to parse opt_console twice. The > first time solely looks for "xen" and the second time parses the rest > options.
What's wrong with making the variable a tristate, and move your set-to-false after the parsing loop? If the user said "false" for the option, then they apparently don't care much about the output. But yes, what you suggest is an option as well. Jan _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel