Skip to content

Commit

Permalink
cli: Move files argument towards the end of Args
Browse files Browse the repository at this point in the history
To fix the argument order in help messages
  • Loading branch information
Lyude committed Feb 6, 2023
1 parent 25b1bf7 commit 5d4fdb2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -148,10 +148,6 @@ pub struct Args {
/// Use ctermfg/ctermbg instead of guifg/guibg
pub cterm_colors: bool,

#[arg()]
/// Files to open
pub files: Vec<String>,

#[arg(long)]
/// Path to the nvim binary
pub nvim_bin_path: Option<String>,
Expand All @@ -160,6 +156,10 @@ pub struct Args {
/// Nvim server to connect to (currently TCP only)
pub server: Option<SocketAddr>,

#[arg()]
/// Files to open
pub files: Vec<String>,

/// Arguments that will be passed to nvim (see more with '--help' before using!)
///
/// Note that due to current limitations, the arguments that may be passed through this are
Expand Down

0 comments on commit 5d4fdb2

Please sign in to comment.