add handling for common command-line utility functionality
Like:
- responding to
--version - responding to
--help - printing usage text (decorating the
argsusage text slightly) - creating an
ArgsParserobject
Probably architected as an abstract template class?
@pq
and usage integration
@sethladd can you elaborate on what usage integration would look like?
Depends on if cli_util is like a shell for command-line apps. Usage would like to know what command-line flags are used, so if cli_util is handling command-line flags, we should ensure the two work together.
Is the requested functionality any different than what's already available in both of the following?
- The unscripted package
- The command_runner library from the args package
AFAICT it's not yet possible to auto-add --version:
https://github.com/seaneagan/unscripted/issues/21
Good question @seaneagan . Also, I'm not sure what the vision is for this package, or where this package would end and a stagehand template for a command-line app would start.