Browse Source

Formatting

pull/111/head
Frenchris 6 years ago
parent
commit
350db57c13
  1. 10
      subjects/options.en.md

10
subjects/options.en.md

@ -2,9 +2,9 @@
## Instructions ## Instructions
Write a program that takes an undefined number of arguments which could be considered as options and writes on standard output a representation of those options as groups of bytes followed by a newline. Write a program that takes an undefined number of arguments which could be considered as options and writes on the standard output a representation of those options as groups of bytes followed by a newline.
- An option is an argument that begins by a '-' and have multiple characters which could be : - An option is an argument that begins by a `-` and have multiple characters which could be :
- abcdefghijklmnopqrstuvwxyz - abcdefghijklmnopqrstuvwxyz
- All options are stocked in a single int and each options represents a bit of that int, and should be stocked like this : - All options are stocked in a single int and each options represents a bit of that int, and should be stocked like this :
@ -12,9 +12,9 @@ Write a program that takes an undefined number of arguments which could be consi
- 00000000 00000000 00000000 00000000 - 00000000 00000000 00000000 00000000
- ******zy xwvutsrq ponmlkji hgfedcba - ******zy xwvutsrq ponmlkji hgfedcba
- Launch the program without arguments or with the '-h' flag activated must print an usage on the standard output, as shown in the following examples. - 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.
- A wrong option must print "Invalid Option" followd by a newline. - A wrong option must print "Invalid Option" followed by a newline.
## Expected output ## Expected output
@ -31,4 +31,4 @@ options: abcdefghijklmnopqrstuvwxyz$
student@ubuntu:~/piscine/test$ ./test -% | cat -e student@ubuntu:~/piscine/test$ ./test -% | cat -e
Invalid Option$ Invalid Option$
student@ubuntu:~/piscine/test$ student@ubuntu:~/piscine/test$
``` ```

Loading…
Cancel
Save