We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 46df798 commit 0a062b5Copy full SHA for 0a062b5
src/libstd/getopts.rs
@@ -31,26 +31,26 @@
31
* file name following -o, and accepts both -h and --help as optional flags.
32
* extern mod std;
33
* use std::getopts::*;
34
- *
+ *
35
* fn do_work(in: &str, out: Option<~str>) {
36
* io::println(in);
37
* io::println(match out {
38
* Some(move x) => x,
39
* None => ~"No Output"
40
* });
41
* }
42
43
* fn print_usage(program: &str, _opts: &[std::getopts::Opt]) {
44
* io::println(fmt!("Usage: %s [options]", program));
45
* io::println("-o\t\tOutput");
46
* io::println("-h --help\tUsage");
47
48
49
* fn main() {
50
* let args = os::args();
51
52
* let program = copy args[0];
53
54
* let opts = ~[
55
* optopt("o"),
56
* optflag("h"),
0 commit comments