Skip to content
This repository has been archived by the owner on Dec 22, 2024. It is now read-only.

Commit

Permalink
Fix clap arg parsing, -m and -s take 1 to many arguments.
Browse files Browse the repository at this point in the history
Yaaah, run test suite first...
  • Loading branch information
Ganneff committed Dec 17, 2022
1 parent aecf0f8 commit 8b416fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ struct Cli {
///
/// When multiple destinations are specified, they are all opened
/// into seperate tmux windows (not sessions!).
#[clap(short = 's', display_order = 15)]
#[clap(short = 's', display_order = 15, num_args = 1..)]
sshhosts: Option<Vec<String>>,

/// Open multi SSH sessions to hosts, synchronizing input.
Expand All @@ -80,7 +80,7 @@ struct Cli {
/// into one single tmux window with many panes in there.
/// Additionally, the "synchronize-input" option is turned on, so
/// that anything entered will be send to every host.
#[clap(short = 'm', display_order = 20)]
#[clap(short = 'm', display_order = 20, num_args = 1..)]
multihosts: Option<Vec<String>>,

/// Open as second session to the same set of hosts as an existing
Expand Down

0 comments on commit 8b416fc

Please sign in to comment.