git.delta.rocks / jrsonnet / refs/commits / bb05d50f624d

difftreelog

fix dont use ArgGroup

Лач2020-07-19parent: #b0a4791.patch.diff
in: master

1 file changed

modifiedcrates/jrsonnet-cli/src/manifest.rsdiffbeforeafterboth
23}23}
2424
25#[derive(Clap)]25#[derive(Clap)]
26// TODO: Restore arg group after issue fixed in clap
26// #[clap(group = clap::ArgGroup::new("output_format"), help_heading = "MANIFESTIFICATION OUTPUT")]27// #[clap(group = clap::ArgGroup::new("output_format"), help_heading = "MANIFESTIFICATION OUTPUT")]
27pub struct ManifestOpts {28pub struct ManifestOpts {
28 /// Output format, wraps resulting value to corresponding std.manifest call.29 /// Output format, wraps resulting value to corresponding std.manifest call.
29 /// If none - then jsonnet file is expected to return plain string value, otherwise30 /// If none - then jsonnet file is expected to return plain string value, otherwise
30 /// output will be serialized to specified format31 /// output will be serialized to specified format
31 #[clap(long, short = 'f', default_value = "json", possible_values = &["none", "json", "yaml"], group = "output_format")]32 #[clap(long, short = 'f', default_value = "json", possible_values = &["none", "json", "yaml"]/*, group = "output_format"*/)]
32 format: ManifestFormatName,33 format: ManifestFormatName,
33 /// Expect string as output, and write them directly.34 /// Expect string as output, and write them directly.
34 /// Shortcut for --format=none, and can't be set with format together35 /// Shortcut for --format=none, and can't be set with format together
35 #[clap(long, short = 'S', group = "output_format")]36 #[clap(long, short = 'S'/*, group = "output_format"*/)]
36 string: bool,37 string: bool,
37 /// Numbed of spaces to pad output manifest with.38 /// Numbed of spaces to pad output manifest with.
38 /// 0 for hard tabs, -1 for single line output39 /// 0 for hard tabs, -1 for single line output