Browse Source

Update options.en.md

clarification of the h flag priority
pull/459/head
Christopher Fremond 5 years ago committed by GitHub
parent
commit
03c8581a80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      subjects/options.en.md

4
subjects/options.en.md

@ -14,6 +14,8 @@ Write a program that takes an undefined number of arguments which could be consi
- Launching the program without arguments or with the `-h` flag activated must print all the valid `options` on the standard output, as shown on one of the following examples.
- Please note the `-h` flag has priority over the others flags when it is called first in one of the arguments. (See the examples)
- A wrong `option` must print `Invalid Option` followed by a newline.
## Usage
@ -31,7 +33,7 @@ options: abcdefghijklmnopqrstuvwxyz$
student@ubuntu:~/[[ROOT]]/test$ ./test -h | cat -e
options: abcdefghijklmnopqrstuvwxyz$
student@ubuntu:~/[[ROOT]]/test$ ./test -zh | cat -e
options: abcdefghijklmnopqrstuvwxyz$
00000010 00000000 00000000 10000000$
student@ubuntu:~/[[ROOT]]/test$ ./test -z -h | cat -e
options: abcdefghijklmnopqrstuvwxyz$
student@ubuntu:~/[[ROOT]]/test$ ./test -hhhhhh | cat -e

Loading…
Cancel
Save