a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
32 lines
907 B
Plaintext
32 lines
907 B
Plaintext
$ mono greet.exe --help
|
|
Usage: greet [OPTIONS]+ message
|
|
Greet a list of individuals with an optional message.
|
|
If no message is specified, a generic greeting is used.
|
|
|
|
Options:
|
|
-n, --name=NAME the NAME of someone to greet.
|
|
-r, --repeat=TIMES the number of TIMES to repeat the greeting.
|
|
this must be an integer.
|
|
-v increase debug message verbosity
|
|
-h, --help show this message and exit
|
|
|
|
$ mono greet.exe -v- -n A -name=B --name=C /name D -nE
|
|
Hello A!
|
|
Hello B!
|
|
Hello C!
|
|
Hello D!
|
|
Hello E!
|
|
|
|
$ mono greet.exe -v -n E custom greeting for: {0}
|
|
# Using new message: custom greeting for: {0}
|
|
custom greeting for: E
|
|
|
|
$ mono greet.exe -r 3 -n A
|
|
Hello A!
|
|
Hello A!
|
|
Hello A!
|
|
|
|
$ mono greet.exe -r not-an-int
|
|
greet: Could not convert string `not-an-int' to type Int32 for option `-r'.
|
|
Try `greet --help' for more information.
|