summaryrefslogtreecommitdiff
path: root/helix-term/src/args.rs
diff options
context:
space:
mode:
authorJoe2022-03-09 18:34:12 +0000
committerGitHub2022-03-09 18:34:12 +0000
commit8d7a25b4d49ef5cd7f5d85585d60e52bdc2bc0c5 (patch)
treebcac808dbb22a0f7931382190a809524ec28bfe6 /helix-term/src/args.rs
parent3f603b27f1251cb77462d350d3f8277546b765de (diff)
Add --edit-config flag to directly open config.toml (#1771)
Co-authored-by: Gokul Soumya <gokulps15@gmail.com>
Diffstat (limited to 'helix-term/src/args.rs')
-rw-r--r--helix-term/src/args.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/helix-term/src/args.rs b/helix-term/src/args.rs
index 4f386aea..11bad08c 100644
--- a/helix-term/src/args.rs
+++ b/helix-term/src/args.rs
@@ -11,6 +11,7 @@ pub struct Args {
pub load_tutor: bool,
pub verbosity: u64,
pub files: Vec<(PathBuf, Position)>,
+ pub edit_config: bool,
}
impl Args {
@@ -26,6 +27,7 @@ impl Args {
"--version" => args.display_version = true,
"--help" => args.display_help = true,
"--tutor" => args.load_tutor = true,
+ "--edit-config" => args.edit_config = true,
"--health" => {
args.health = true;
args.health_arg = argv.next_if(|opt| !opt.starts_with('-'));