difftreelog
fix dont use ArgGroup
in: master
1 file changed
crates/jrsonnet-cli/src/manifest.rsdiffbeforeafterboth23}23}242425#[derive(Clap)]25#[derive(Clap)]26// TODO: Restore arg group after issue fixed in clap26// #[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, otherwise30 /// output will be serialized to specified format31 /// output will be serialized to specified format31 #[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 together35 #[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