git.delta.rocks / jrsonnet / refs/commits / 446308e1b3b1

difftreelog

fix mark -S and --format as mutually exclusive

Yaroslav Bolyukin2022-10-17parent: #5e6d5ee.patch.diff
in: master

1 file changed

modifiedcrates/jrsonnet-cli/src/manifest.rsdiffbeforeafterboth
28#[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/yaml
40 #[clap(long, short = 'y')]38 #[clap(long, short = 'y')]