File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 10
10
11
11
//! Simple getopt alternative.
12
12
//!
13
- //! Construct a vector of options, either by using reqopt, optopt, and optflag
14
- //! or by building them from components yourself, and pass them to getopts,
15
- //! along with a vector of actual arguments (not including argv[0]). You'll
13
+ //! Construct a vector of options, either by using ` reqopt`, ` optopt` , and ` optflag`
14
+ //! or by building them from components yourself, and pass them to ` getopts` ,
15
+ //! along with a vector of actual arguments (not including ` argv[0]` ). You'll
16
16
//! either get a failure code back, or a match. You'll have to verify whether
17
- //! the amount of 'free' arguments in the match is what you expect. Use opt_*
17
+ //! the amount of 'free' arguments in the match is what you expect. Use ` opt_*`
18
18
//! accessors to get argument values out of the matches object.
19
19
//!
20
20
//! Single-character options are expected to appear on the command line with a
27
27
//!
28
28
//! The following example shows simple command line parsing for an application
29
29
//! that requires an input file to be specified, accepts an optional output
30
- //! file name following -o , and accepts both -h and --help as optional flags.
30
+ //! file name following `-o` , and accepts both `-h` and ` --help` as optional flags.
31
31
//!
32
32
//! ~~~{.rust}
33
33
//! exter mod extra;
You can’t perform that action at this time.
0 commit comments