ember-learn / ember-jsonapi-docs

fixes up the ember docs generated by YUIDoc to be in JSONAPI format + some other niceties
9 stars 11 forks source link

move from minimist to commander #134

Closed mansona closed 10 months ago

mansona commented 10 months ago

This gives us a lot more feedback when running the scripts in this repo if we pass the wrong args, it also gives us a nice --help functionality 🎉

➜  ember-jsonapi-docs git:(commander) ✗ ./index.js --help                   
Usage: index [options]

Options:
  -p, --projects <project...>  the projects that you want to run this for (choices: "ember", "ember-data")
  -v, --version <version>      project version
  -a, --all                    process all versions (this will take a long time)
  -c, --clean                  clean (not sure what this does)
  -h, --help                   display help for command

➜  ember-jsonapi-docs git:(commander) ./generate-local.js --help
Usage: generate-local [options]

Options:
  -p, --project <project>  the project that you want to run this for (choices: "ember", "ember-data")
  -v, --version <version>  project version
  -h, --help               display help for command