mirror of
https://github.com/soywod/himalaya.git
synced 2024-11-25 04:20:22 +00:00
fix mailto being parsed after cli
This commit is contained in:
parent
3c417d14eb
commit
30f00d0867
1 changed files with 2 additions and 3 deletions
|
@ -17,12 +17,9 @@ async fn main() -> Result<()> {
|
|||
env::set_var("RUST_LOG", "trace");
|
||||
}
|
||||
}
|
||||
let cli = Cli::parse();
|
||||
|
||||
let filter = himalaya::tracing::install()?;
|
||||
|
||||
let mut printer = StdoutPrinter::new(cli.output, cli.color);
|
||||
|
||||
// if the first argument starts by "mailto:", execute straight the
|
||||
// mailto message command
|
||||
let mailto = std::env::args()
|
||||
|
@ -38,6 +35,8 @@ async fn main() -> Result<()> {
|
|||
.await;
|
||||
}
|
||||
|
||||
let cli = Cli::parse();
|
||||
let mut printer = StdoutPrinter::new(cli.output, cli.color);
|
||||
let mut res = match cli.command {
|
||||
Some(cmd) => cmd.execute(&mut printer, cli.config_paths.as_ref()).await,
|
||||
None => {
|
||||
|
|
Loading…
Reference in a new issue