mirror of
https://github.com/ouch-org/ouch.git
synced 2025-06-08 04:25:31 +00:00
Remove redundant code
This commit is contained in:
parent
bc33ccc99c
commit
7fb4398c04
@ -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")]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user