Roaders / ts-command-line-args

A typescript wrapper for command-line-args that allow you to generate config from existing TS interfaces
26 stars 11 forks source link

OptionContent is missing "hide" field #8

Closed OmgImAlexis closed 3 years ago

OmgImAlexis commented 3 years ago

Trying to follow https://github.com/75lb/command-line-usage/wiki/How-to-hide-an-option-in-the-usage-guide

I couldn't find another way to pass this so I'm using this but I get a type error.

    optionSections: [{
        hide: ['src']
    }],
Roaders commented 3 years ago

That code should work now. I added the missing properties to the OptionContent section type definition. Thanks for raising the issue.