Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'helix-term/src/args.rs')
| -rw-r--r-- | helix-term/src/args.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/helix-term/src/args.rs b/helix-term/src/args.rs index 090c1192..156bb46b 100644 --- a/helix-term/src/args.rs +++ b/helix-term/src/args.rs @@ -13,6 +13,7 @@ pub struct Args { pub load_tutor: bool, pub fetch_grammars: bool, pub build_grammars: bool, + pub strict: bool, pub split: Option<Layout>, pub verbosity: u64, pub log_file: Option<PathBuf>, @@ -22,6 +23,7 @@ pub struct Args { } impl Args { + #[allow(clippy::too_many_lines)] pub fn parse_args() -> Result<Args> { let mut args = Args::default(); let mut argv = std::env::args().peekable(); @@ -46,6 +48,7 @@ impl Args { "--" => break, // stop parsing at this point treat the remaining as files "--version" => args.display_version = true, "--help" => args.display_help = true, + "--strict" => args.strict = true, "--tutor" => args.load_tutor = true, "--vsplit" => match args.split { Some(_) => anyhow::bail!("can only set a split once of a specific type"), |