From 31850409d2b9df9b24a0026823bd3afd3319261d Mon Sep 17 00:00:00 2001 From: Will Lane Date: Thu, 22 Oct 2020 15:38:32 -0700 Subject: [PATCH] fixed up some arg parsing --- src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 0e04576..54b8198 100644 --- a/src/main.rs +++ b/src/main.rs @@ -9,8 +9,9 @@ use termion::color; use users::{get_current_uid, get_user_by_uid}; #[derive(StructOpt, Debug)] +#[structopt(name = "nat", about = "the ls replacement you never knew you needed")] struct Cli { - #[structopt(default_value = ".")] + #[structopt(parse(from_os_str), default_value = ".", help = "Give me a directory")] path: std::path::PathBuf, }