From 75c0a5ceb32d8a503915a93ccc1b64c8ad1cba8b Mon Sep 17 00:00:00 2001 From: Lloyd Bond Date: Mon, 2 Oct 2023 21:18:27 -0400 Subject: 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 is set but args.files is empty * improved formatting of --help output--- helix-term/src/main.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'helix-term/src/main.rs') 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 Specify an initial working directory ", env!("CARGO_PKG_NAME"), VERSION_AND_GIT_HASH, -- cgit v1.2.3-70-g09d2