From 03c8581a80f6431163c5d9943295f2b35a9db33a Mon Sep 17 00:00:00 2001 From: Christopher Fremond <34804391+Frenchris@users.noreply.github.com> Date: Thu, 6 Feb 2020 18:37:58 +0000 Subject: [PATCH] Update options.en.md clarification of the h flag priority --- subjects/options.en.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/subjects/options.en.md b/subjects/options.en.md index 5c38c0569..dd6e38c75 100644 --- a/subjects/options.en.md +++ b/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