Skip to content

Commit

Permalink
arg: be explicit about short name
Browse files Browse the repository at this point in the history
  • Loading branch information
vks committed Dec 10, 2014
1 parent 5ebd7b1 commit 2620631
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/staging/arg/getopts/echo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ fn main() {
};

if matches.opt_present("help") {
//^ We could as well have used the short name.
//^ We could as well have used the short name: "h"
println!("echo {} - display a line of text", VERSION);
println!("");
println!("Usage:");
Expand Down

0 comments on commit 2620631

Please sign in to comment.