kwiver icon indicating copy to clipboard operation
kwiver copied to clipboard

Bring standard help option for applets into core structures

Open Purg opened this issue 4 years ago • 4 comments

While working on a new applet, I found that every applet was defining their own -h/--help options independently, most in very similar manners. This seems unnecessary as I am unaware of any cases where a tool would want to do something overly special for --help that they wouldn't do with a more specialized help command (that they of course would define).

This branch is an attempt at pulling in a standard "help" option that is applied and handled for any applet. Such a help option is defined before an applet defines it's own options in add_command_options, and the generic help option is handled before an applet's run() is invoked.

~~This is currently marked as a "draft" as this change has ramifications to disseminate into the existing applets. Initial observations show that this should not be difficult or time consuming to disseminate.~~ Actually just went and fixed the existing applets because it was "easy."

Purg avatar Oct 28 '21 18:10 Purg