felixSchl/neodoc

Implement --help and --version

felixSchl opened this issue · 2 comments

The developer will be able to specify the option that will trigger the --help and --version convenience functions, with fallbacks to --help and --version.

  • Implement --help. If matched, print the docopt text. (feature/help)
  • Implement --version. If matched, print either the npm package version or a user-provided version string
moll commented

Not overly difficult to do now, either:

if (args["--version"]) return void process.stdout.write(VERSION_TEXT)