The generated man page and completion scripts use the command name as a
base. With the command name being "mml-cli", the completion scripts
don't work as expected.
This fixes the completion scripts and man pages.
---
src/main.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main.rs b/src/main.rs
index 5b925d3..026a84e 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -8,7 +8,7 @@ use env_logger::{Builder as LoggerBuilder, Env, DEFAULT_FILTER_ENV};
use std::env;
fn create_app() -> Command {
- Command::new(env!("CARGO_PKG_NAME"))
+ Command::new("mml")
.version(env!("CARGO_PKG_VERSION"))
.about(env!("CARGO_PKG_DESCRIPTION"))
.author(env!("CARGO_PKG_AUTHORS"))
--
2.42.0