summaryrefslogtreecommitdiff
path: root/helix-term/src/args.rs
diff options
context:
space:
mode:
Diffstat (limited to 'helix-term/src/args.rs')
-rw-r--r--helix-term/src/args.rs4
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)
}