aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src/main.rs
diff options
context:
space:
mode:
authorBjorn Ove Hay Andersen2023-10-12 08:35:43 +0000
committerGitHub2023-10-12 08:35:43 +0000
commit07a006d1d5270e81c57bbc0e712614741d3b31a7 (patch)
tree24b1f853408a4d5c1bf4be8bdb224774a0ed18ac /helix-term/src/main.rs
parent1852292451d984de33ea526b3b7dc7f51c6130eb (diff)
Add +N CLI argument to jump to first file's line number (#8521)
* Accept +num flag for opening at line number * Update +N argument feature according to feedback in original PR #5603 * Only override the line number of the first file if +N is specified --------- Co-authored-by: Nachum Barcohen <38861757+nabaco@users.noreply.github.com>
Diffstat (limited to 'helix-term/src/main.rs')
-rw-r--r--helix-term/src/main.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/helix-term/src/main.rs b/helix-term/src/main.rs
index ed3478ac..8db5f310 100644
--- a/helix-term/src/main.rs
+++ b/helix-term/src/main.rs
@@ -67,6 +67,7 @@ FLAGS:
--vsplit Splits all given files vertically into different windows
--hsplit Splits all given files horizontally into different windows
-w, --working-dir <path> Specify an initial working directory
+ +N Open the first given file at line number N
",
env!("CARGO_PKG_NAME"),
VERSION_AND_GIT_HASH,