difftreelog
fix mark -S and --format as mutually exclusive
in: master
1 file changed
crates/jrsonnet-cli/src/manifest.rsdiffbeforeafterboth28#[clap(next_help_heading = "MANIFESTIFICATION OUTPUT")]28#[clap(next_help_heading = "MANIFESTIFICATION OUTPUT")]29pub struct ManifestOpts {29pub struct ManifestOpts {30 /// Output format, wraps resulting value to corresponding std.manifest call.30 /// Output format, wraps resulting value to corresponding std.manifest call.31 /// If set to `string` then plain string value is expected to be returned,32 /// otherwise output will be serialized to the specified format.33 #[clap(long, short = 'f', default_value = "json", possible_values = &["string", "json", "yaml"])]31 #[clap(long, short = 'f', default_value = "json", possible_values = &["json", "yaml"])]34 format: ManifestFormatName,32 format: ManifestFormatName,35 /// Expect plain string as output.33 /// Expect plain string as output.36 /// Shortcut for `--format=string` thus this option is mutually exclusive with `format` option.34 /// Mutually exclusive with `--format`37 #[clap(long, short = 'S')]35 #[clap(long, short = 'S', conflicts_with = "format")]38 string: bool,36 string: bool,39 /// Write output as YAML stream, can be used with --format json/yaml37 /// Write output as YAML stream, can be used with --format json/yaml40 #[clap(long, short = 'y')]38 #[clap(long, short = 'y')]