mirror of https://github.com/01-edu/public.git
docs: adding example
This commit is contained in:
parent
064cb434c8
commit
97ea8ca39e
|
@ -15,6 +15,12 @@ Usage: go run . [OPTION] [STRING]
|
|||
|
||||
EX: go run . --color=<color> <substring to be colored> "something"
|
||||
```
|
||||
### Example
|
||||
```shell
|
||||
go run . --color=red "kit" "a king kitten have kit"
|
||||
```
|
||||
for the above example the substring kit in the word kitten and the word kit at the end should be colored.
|
||||
|
||||
|
||||
If there are other `ascii-art` optional projects implemented, the program should accept other correctly formatted `[OPTION]` and/or `[BANNER]`.
|
||||
Additionally, the program must still be able to run with a single `[STRING]` argument.
|
||||
|
|
Loading…
Reference in New Issue