aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src/main.rs
diff options
context:
space:
mode:
authorLloyd Bond2023-10-03 01:18:27 +0000
committerGitHub2023-10-03 01:18:27 +0000
commit75c0a5ceb32d8a503915a93ccc1b64c8ad1cba8b (patch)
treec563d1c0bd86d816f21e450e990b2c90ab1aa1b5 /helix-term/src/main.rs
parent1756ba443631b0eb6d93c089d3b13b13cd8ef28f (diff)
enable starting hx with a working directory (#8223)
* added working path arg to cli and help menu * improve working path cli arg handling * enable hx to set the working path * applied cargo formatting * improved code from cargo clippy suggestion * improved code from follow up review * fix for -w <path> is set but args.files is empty * improved formatting of --help output
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 542d18e6..009cbf7f 100644
--- a/helix-term/src/main.rs
+++ b/helix-term/src/main.rs
@@ -66,6 +66,7 @@ FLAGS:
-V, --version Prints version information
--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
",
env!("CARGO_PKG_NAME"),
VERSION_AND_GIT_HASH,