Closed STRML closed 8 years ago
Force-pushed a lint fix
Not a big fan of dynamically generated docs TBH. Last time I tried yargs it had a massive dependency graph and require
d in like a hundred files. Will try this out...
This is going to give us a lot of flexibility in arg parsing, and ensures the docs always follow the code. It also fixes #12 because the existing argument parser has an issue with flag positioning.
If, in the future, something it autogenerates is no good, we can have it display a static file as part/all of the output.
It seems the dep tree is under control:
└─┬ yargs@4.4.0
├── cliui@3.1.2
├─┬ lodash.assign@4.0.7
│ ├── lodash.keys@4.0.6
│ └── lodash.rest@4.0.2
├─┬ pkg-conf@1.1.2
│ ├── object-assign@4.0.1
│ └── symbol@0.2.1
├── require-main-filename@1.0.1
├── window-size@0.2.0
└─┬ yargs-parser@2.2.0
├── camelcase@2.1.1
└─┬ lodash.assign@4.0.7
└── lodash.keys@4.0.6
@STRML Ok, you convinced me :smile: If you submit this against rebirth
(the next version of ied), I will merge. This might give you a bunch of merge conflicts TBH, but should be fairly easy to resolve. Let me know if I can help!
Closed for #110
This also adds the
help
command: