diff --git a/src/cli/arguments/clap-basic.md b/src/cli/arguments/clap-basic.md index ff22ee3..20e8fc2 100644 --- a/src/cli/arguments/clap-basic.md +++ b/src/cli/arguments/clap-basic.md @@ -19,8 +19,8 @@ fn main() { .version("0.1.0") .author("Hackerman Jones ") .about("Teaches argument parsing") - .arg(arg!(--file ).required(true).value_name("A cool file")) - .arg(arg!(--num ).required(false).value_name("Five less than your favorite number")) + .arg(arg!(--file ).short('f').required(true).value_name("A cool file")) + .arg(arg!(--num ).short('n').required(false).value_name("Five less than your favorite number")) .get_matches(); let myfile = matches.get_one::("file").expect("required");