From f4dac467477c39cdd44ac3d62c9ef4a3f747e893 Mon Sep 17 00:00:00 2001 From: Yash Karandikar Date: Tue, 19 Apr 2022 10:57:12 -0500 Subject: [PATCH] I made an oopsie --- src/main.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index 9cc9dbd..8865afb 100644 --- a/src/main.rs +++ b/src/main.rs @@ -12,7 +12,7 @@ mod discord; const MAXBUF: u64 = 8_380_416; const HELP: &[&str] = &[ - concat!("dimgup-cli ", env!("CARGO_PKG_VERSION")), + concat!("+---- dimgup-cli ", env!("CARGO_PKG_VERSION"), " ---+"), "dimgup-cli config - set webhook", "dimgup-cli - upload file to discord", "dimgup-cli help - show this message", @@ -83,7 +83,7 @@ fn do_upload(mut file: File, size: u64, name: &str, webhook: &str) -> anyhow::Re fn main() -> anyhow::Result<()> { let filename = std::env::args() .nth(1) - .ok_or_else(|| anyhow!("No filename was provided"))?; + .ok_or_else(|| anyhow!("No filename or argument was provided"))?; if filename == "config" { let webhook = std::env::args() .nth(2) @@ -99,7 +99,7 @@ fn main() -> anyhow::Result<()> { let conf = get_config_file(); let webhook = match get_webhook(&conf) { Ok(w) => w, - Err(_) => bail!("Please set your webhook. See --help for more info."), + Err(_) => bail!("Please set your webhook. See `dimgup-cli help` for more info."), }; let filename = PathBuf::from(filename);