Command line help: Add hint about platform overrides (#375)

- Rename PLATFORMS to PLATFORM
- Add hint about specifying platform multiple times
This commit is contained in:
Danilo Bargen 2024-08-13 00:14:19 +02:00 committed by GitHub
commit 7c245040b9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 19 additions and 17 deletions

View file

@ -41,10 +41,11 @@ pub(crate) struct Cli {
)]
pub render: Option<PathBuf>,
/// Override the operating system
/// Override the operating system, can be specified multiple times in order of preference
#[arg(
short = 'p',
long = "platform",
value_name = "PLATFORM",
action = ArgAction::Append,
)]
pub platforms: Option<Vec<PlatformType>>,