diff --git a/src/cli/args.rs b/src/cli/args.rs index 974608c..efc557d 100644 --- a/src/cli/args.rs +++ b/src/cli/args.rs @@ -5,9 +5,6 @@ use clap::{ArgAction::SetTrue, Args as _, FromArgMatches as _, Parser}; use crate::{config::Manager, util::AddressFamily}; -/// Options that switch us into another mode i.e. which don't require source/destination arguments -pub(crate) const MODE_OPTIONS: &[&str] = &["server", "help_buffers", "config_files", "show_config"]; - /// CLI argument definition #[derive(Debug, Parser, Clone)] #[command( diff --git a/src/cli/mod.rs b/src/cli/mod.rs index 3234e3c..8845dc9 100644 --- a/src/cli/mod.rs +++ b/src/cli/mod.rs @@ -3,5 +3,4 @@ mod args; mod cli_main; pub mod styles; -pub(crate) use args::MODE_OPTIONS; pub use cli_main::cli; diff --git a/src/client/options.rs b/src/client/options.rs index 2699c8a..22fde0d 100644 --- a/src/client/options.rs +++ b/src/client/options.rs @@ -60,19 +60,13 @@ pub struct Parameters { // JOB SPECIFICAION ==================================================================== // (POSITIONAL ARGUMENTS!) /// The source file. This may be a local filename, or remote specified as HOST:FILE or USER@HOST:FILE. - #[arg( - required_unless_present_any(crate::cli::MODE_OPTIONS), - value_name = "SOURCE" - )] + #[arg(value_name = "SOURCE")] pub source: Option, /// Destination. This may be a file or directory. It may be local or remote. /// /// If remote, specify as HOST:DESTINATION or USER@HOST:DESTINATION; or simply HOST: or USER@HOST: to copy to your home directory there. - #[arg( - required_unless_present_any(crate::cli::MODE_OPTIONS), - value_name = "DESTINATION" - )] + #[arg(value_name = "DESTINATION")] pub destination: Option, }