cli_util icon indicating copy to clipboard operation
cli_util copied to clipboard

add handling for common command-line utility functionality

Open devoncarew opened this issue 10 years ago • 5 comments

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?

@pq

devoncarew avatar Feb 09 '15 17:02 devoncarew

and usage integration

sethladd avatar Feb 09 '15 17:02 sethladd

@sethladd can you elaborate on what usage integration would look like?

pq avatar Feb 10 '15 02:02 pq

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.

sethladd avatar Feb 10 '15 16:02 sethladd

Is the requested functionality any different than what's already available in both of the following?

AFAICT it's not yet possible to auto-add --version:

https://github.com/seaneagan/unscripted/issues/21

seaneagan avatar Feb 10 '15 21:02 seaneagan

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.

sethladd avatar Feb 11 '15 05:02 sethladd