Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
tasnimAlam committed Aug 22, 2021
1 parent b455c14 commit d08968a
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,13 @@ A program that displays word count of a file.
# Example
## Usage
```console
$ ./word_counter poem.txt --top 6
'the' is counted maximum 4 times
$ ./word_counter poem.txt --top 4 --search lover
+---------------+-------+---+
| Search result | lover | 3 |
+---------------+-------+---+
+---------------+-----+---+
| Maximum count | the | 4 |
+---------------+-----+---+
+-------+-------+
| Word | Count |
+-------+-------+
Expand All @@ -15,10 +20,6 @@ $ ./word_counter poem.txt --top 6
+-------+-------+
| God | 3 |
+-------+-------+
| to | 3 |
+-------+-------+
| is | 3 |
+-------+-------+
| lover | 3 |
+-------+-------+
```
Expand All @@ -34,14 +35,14 @@ USAGE:

FLAGS:
-h, --help Prints help information
-r, --reverse
-r, --reverse Reverse order
-V, --version Prints version information

OPTIONS:
-o, --output <output> Output file
-s, --search <search> Search specific word
-t, --top <top> [default: 10]

ARGS:
<input> Input file

```

0 comments on commit d08968a

Please sign in to comment.