diff --git a/crates/common/src/manager/boot.rs b/crates/common/src/manager/boot.rs
index 703cffb4..fb115283 100644
--- a/crates/common/src/manager/boot.rs
+++ b/crates/common/src/manager/boot.rs
@@ -80,10 +80,11 @@ impl BootManager {
if config_path.is_none() {
let mut args = std::env::args().skip(1);
- while let Some(arg) = args
- .next()
- .and_then(|arg| arg.strip_prefix("--").map(|arg| arg.to_string()))
- {
+ while let Some(arg) = args.next().and_then(|arg| {
+ arg.strip_prefix("--")
+ .or_else(|| arg.strip_prefix('-'))
+ .map(|arg| arg.to_string())
+ }) {
let (key, value) = if let Some((key, value)) = arg.split_once('=') {
(key.to_string(), Some(value.trim().to_string()))
} else {
diff --git a/crates/jmap/src/api/autoconfig.rs b/crates/jmap/src/api/autoconfig.rs
index a4ce484f..c5409bcb 100644
--- a/crates/jmap/src/api/autoconfig.rs
+++ b/crates/jmap/src/api/autoconfig.rs
@@ -77,18 +77,18 @@ impl JMAP {
"\t\t\t{}",
if is_tls { "SSL" } else { "STARTTLS" }
);
+ let _ = writeln!(&mut config, "\t\t\t{account_name}");
let _ = writeln!(
&mut config,
"\t\t\tpassword-cleartext"
);
- let _ = writeln!(&mut config, "\t\t\t{account_name}");
let _ = writeln!(&mut config, "\t\t{tag}>");
}
config.push_str("\t\n");
let _ = writeln!(
&mut config,
- "\t"
+ "\t"
);
config.push_str("\n");