aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoug Goldstein <cardoe@cardoe.com>2019-12-26 13:18:56 -0600
committerDoug Goldstein <cardoe@cardoe.com>2019-12-26 13:18:56 -0600
commite697ae1bc40507ca573ca9ee6f360cdd59bd36af (patch)
tree24716304b9b0fae594e037f45756c50633bcb1c4
parentsplit metadata gathering and ebuild writing functions (diff)
downloadcargo-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.rs6
-rw-r--r--src/main.rs9
2 files changed, 2 insertions, 13 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 9e380ec..2eff106 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -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);