dart-lang/cli_util

add handling for common command-line utility functionality

devoncarew opened this issue · 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

and usage integration

pq commented

@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?

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

seaneagan/unscripted#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.