Remove redundant code

This commit is contained in:
Spyros Roum 2021-10-19 19:56:27 +03:00
parent bc33ccc99c
commit 7fb4398c04

View File

@ -1,17 +1,16 @@
//! CLI arg parser configuration, command detection and input treatment. //! CLI arg parser configuration, command detection and input treatment.
use std::{ use std::{
env,
path::{Path, PathBuf}, path::{Path, PathBuf},
vec::Vec, vec::Vec,
}; };
use clap::{crate_authors, crate_description, crate_name, crate_version, Parser, ValueHint}; use clap::{Parser, ValueHint};
use crate::Error; use crate::Error;
#[derive(Parser, Debug)] #[derive(Parser, Debug)]
#[clap(name = crate_name!(), version = crate_version!(), author = crate_authors!(), about = crate_description!())] #[clap(version, author, about)]
pub struct Opts { pub struct Opts {
/// Skip overwrite questions positively. /// Skip overwrite questions positively.
#[clap(short, long, conflicts_with = "no")] #[clap(short, long, conflicts_with = "no")]