Clap: Hidden subcommand

Created on 18 Sep 2017  路  4Comments  路  Source: clap-rs/clap

Is there a way to define a hidden subcommand?

Most helpful comment

My bad, I answered too quickly.

It sounds like you can do that with AppSettings. See AppSettings::Hidden and AppSettings::HidePossibleValuesInHelp for instance. I have to say I've never used that though.

All 4 comments

With hidden.

@AdrienChampion I don't get it: subcommand is not an Arg, it's an instance of App, right?

My bad, I answered too quickly.

It sounds like you can do that with AppSettings. See AppSettings::Hidden and AppSettings::HidePossibleValuesInHelp for instance. I have to say I've never used that though.

Oh, thank you, it's exactly what I need! Missed it somehow...

Was this page helpful?
0 / 5 - 0 ratings