ngist icon indicating copy to clipboard operation
ngist copied to clipboard

Look into using nomnom for opt parsing

Open chapel opened this issue 13 years ago • 3 comments
trafficstars

https://github.com/harthur/nomnom

chapel avatar Jan 21 '12 23:01 chapel

Also think about flatiron. Check out this pull request on issues: http://github.com/vesln/issues/pull/8

indexzero avatar Jan 21 '12 23:01 indexzero

If I end up having prompts, then I will consider prompt from flatiron. Thanks for the heads up @indexzero

chapel avatar Jan 21 '12 23:01 chapel

The way configuration is handled is also really useful. For example I don't want to have to do -t -<token> -u <username for every ngist command. With flatiron a call to

app.config.get('username');

will (in-order):

  • Check any defaults
  • Check argv and ENV vars.
  • Check any files configured to read from

So very quickly you could setup a sophisticated hierarchical configuration like npm has :)

indexzero avatar Jan 22 '12 00:01 indexzero