We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0813276 commit f4d96b2Copy full SHA for f4d96b2
helix-term/src/args.rs
@@ -32,8 +32,14 @@ impl Args {
32
"--version" => args.display_version = true,
33
"--help" => args.display_help = true,
34
"--tutor" => args.load_tutor = true,
35
- "--vsplit" => args.split = Some(Layout::Vertical),
36
- "--hsplit" => args.split = Some(Layout::Horizontal),
+ "--vsplit" => match args.split {
+ Some(_) => anyhow::bail!("can only set a split once of a specific type"),
37
+ None => args.split = Some(Layout::Vertical),
38
+ },
39
+ "--hsplit" => match args.split {
40
41
+ None => args.split = Some(Layout::Horizontal),
42
43
"--health" => {
44
args.health = true;
45
args.health_arg = argv.next_if(|opt| !opt.starts_with('-'));
0 commit comments