jasmith590 / COP

COP - Configuration Option Parser
2 stars 0 forks source link

cop -h help output is different than cop #20

Open briceburg opened 7 years ago

briceburg commented 7 years ago

I'd imagine the help output should be same regardless if passing the -h flag?

bin/cop -h

$ bin/cop -h

Usage: cop [options]

  Options:

    -h, --help                        output usage information
    -V, --version                     output the version number
    --yml, --yaml                     Render as YAML
    --shell                           Render as Shell VARS
    --json                            Render as JSON
    --xml                             Render as XML
    --render-as <format>              Render format
    -t, --render-template [template]  Rendering template
    --stdin-type <format>             STDIN format

versus bin/cop

$ bin/cop 

Usage: cop [options]

  Options:

    -h, --help                        output usage information
    -V, --version                     output the version number
    --yml, --yaml                     Render as YAML
    --shell                           Render as Shell VARS
    --json                            Render as JSON
    --xml                             Render as XML
    --render-as <format>              Render format
    -t, --render-template [template]  Rendering template
    --stdin-type <format>             STDIN format

 Configuration Extensions:

    json - *.json, *.jsonp, *.js
    shell - *.shell, *.vars, *.env
    xml - *.xml, *.html
    yaml - *.yaml, *.yml

 Template Engines:

    dust - *.dust
    handlebars - *.hbs, *.handlebars
    marko - *.marko
    nunjucks - *.njk, *.nunjucks, *.j2, *.jinja, *.jinja2

  Examples:

    $ bin/cop --yml examples/setting.json
    $ bin/cop --yml examples/setting.json examples/setting.yml
    $ bin/cop --render-template examples/views/Dockerfile.hbs examples/setting.json examples/setting.yml
jasmith590 commented 7 years ago

Something to do with commander, I can look into it