diff options
author | 2019-12-26 13:18:56 -0600 | |
---|---|---|
committer | 2019-12-26 13:18:56 -0600 | |
commit | e697ae1bc40507ca573ca9ee6f360cdd59bd36af (patch) | |
tree | 24716304b9b0fae594e037f45756c50633bcb1c4 | |
parent | split metadata gathering and ebuild writing functions (diff) | |
download | cargo-ebuild-change-up-the-parse.tar.gz cargo-ebuild-change-up-the-parse.tar.bz2 cargo-ebuild-change-up-the-parse.zip |
drop unused verbose and quiet flagschange-up-the-parse
The verbose and quiet flags don't do anything so drop these as valid
flags.
-rw-r--r-- | src/lib.rs | 6 | ||||
-rw-r--r-- | src/main.rs | 9 |
2 files changed, 2 insertions, 13 deletions
@@ -27,11 +27,7 @@ fn parse_license<'a>(lic_str: &'a str) -> Vec<&'a str> { .collect() } -pub fn gen_ebuild_data( - verbose: u32, - quiet: bool, - manifest_path: Option<PathBuf>, -) -> Result<EbuildConfig> { +pub fn gen_ebuild_data(manifest_path: Option<PathBuf>) -> Result<EbuildConfig> { let mut cmd = cargo_metadata::MetadataCommand::new(); if let Some(path) = manifest_path { diff --git a/src/main.rs b/src/main.rs index bc3c520..dbf73ee 100644 --- a/src/main.rs +++ b/src/main.rs @@ -19,13 +19,6 @@ use structopt::StructOpt; #[derive(StructOpt, Debug)] struct Args { - /// Silence all output - #[structopt(short = "q", long = "quiet")] - quiet: bool, - /// Verbose mode (-v, -vv, -vvv, etc.) - #[structopt(short = "v", long = "verbose", parse(from_occurrences))] - verbose: usize, - #[structopt(name = "PATH", long = "manifest-path", parse(from_os_str))] /// Path to Cargo.toml. manifest_path: Option<PathBuf>, @@ -49,7 +42,7 @@ fn main() -> Result<()> { let Opt::Ebuild(opt) = Opt::from_args(); // compute the data from the package that the build needs - let ebuild_data = gen_ebuild_data(opt.verbose as u32, opt.quiet, opt.manifest_path)?; + let ebuild_data = gen_ebuild_data(opt.manifest_path)?; let ebuild_path = format!("{}-{}.ebuild", ebuild_data.name, ebuild_data.version); |