diff options
author | Michael Davis | 2022-02-14 02:08:11 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2022-03-10 08:31:57 +0000 |
commit | 8330f6af202f0a9f681d94c7aec586cf5416e0c9 (patch) | |
tree | 7cc1fdce2d1963d7f8172078b43d83b6b6f6c198 /helix-term/src/args.rs | |
parent | c1f677ff75d6a2932175722c92c3d42c30515b48 (diff) |
add --fetch-grammars and --build-grammars CLI flags
Diffstat (limited to 'helix-term/src/args.rs')
-rw-r--r-- | helix-term/src/args.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/helix-term/src/args.rs b/helix-term/src/args.rs index 11bad08c..80076528 100644 --- a/helix-term/src/args.rs +++ b/helix-term/src/args.rs @@ -9,6 +9,8 @@ pub struct Args { pub health: bool, pub health_arg: Option<String>, pub load_tutor: bool, + pub fetch_grammars: bool, + pub build_grammars: bool, pub verbosity: u64, pub files: Vec<(PathBuf, Position)>, pub edit_config: bool, @@ -32,6 +34,8 @@ impl Args { args.health = true; args.health_arg = argv.next_if(|opt| !opt.starts_with('-')); } + "--fetch-grammars" => args.fetch_grammars = true, + "--build-grammars" => args.build_grammars = true, arg if arg.starts_with("--") => { anyhow::bail!("unexpected double dash argument: {}", arg) } |