Clap: Hide deprecated -o/--os argument from help

This commit is contained in:
Danilo Bargen 2021-12-11 17:37:11 +01:00
commit 69f4808214
2 changed files with 1 additions and 2 deletions

View file

@ -15,7 +15,6 @@ OPTIONS:
-f, --render <FILE> Render a specific markdown file
-p, --platform <PLATFORM> Override the operating system [possible values: linux, macos,
windows, sunos, osx]
-o, --os <OS> Deprecated alias of `platform`
-L, --language <LANGUAGE> Override the language
-u, --update Update the local cache
-c, --clear-cache Clear the local cache

View file

@ -92,7 +92,7 @@ struct Args {
short = 'o',
long = "os",
possible_values = ["linux", "macos", "windows", "sunos", "osx"],
hide_possible_values = true,
hide = true
)]
os: Option<PlatformType>,