Skip to content
This repository has been archived by the owner on Apr 26, 2021. It is now read-only.

Implement --help and --version #48

Closed
2 tasks done
felixSchl opened this issue Jun 24, 2016 · 2 comments
Closed
2 tasks done

Implement --help and --version #48

felixSchl opened this issue Jun 24, 2016 · 2 comments

Comments

@felixSchl
Copy link
Owner

felixSchl commented Jun 24, 2016

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
Copy link

moll commented Jul 11, 2016

Not overly difficult to do now, either:

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

@felixSchl
Copy link
Owner Author

Available in version 0.10.0 - https://github.com/felixSchl/neodoc/releases/tag/v0.10.0

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants