Skip to content

Commit

Permalink
tidied up the readme
Browse files Browse the repository at this point in the history
  • Loading branch information
CluEleSsUK committed Nov 7, 2023
1 parent 4bd3152 commit 145dd34
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,16 @@ Choose an item from a file or input stream using drand
`npm install -g dchoose`

## Usage
Select some random entries from a file:

`cat /some/path/to/file | dchoose --count 2`
or

Or alternatively:

`dchoose --count 2 --file /some/path/to/file`
or

Flip a coin:

`echo -e "heads\ntails" | dchoose`

## Parameters
Expand Down

0 comments on commit 145dd34

Please sign in to comment.