add handling for common command-line utility functionality
devoncarew opened this issue · 5 comments
devoncarew commented
Like:
- responding to
--version
- responding to
--help
- printing usage text (decorating the
args
usage text slightly) - creating an
ArgsParser
object
Probably architected as an abstract template class?
sethladd commented
and usage integration
sethladd commented
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.
seaneagan commented
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:
sethladd commented
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.