Skip to content

Commit

Permalink
update usage
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuaboud committed Feb 18, 2022
1 parent a49cfa6 commit 0d782cf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
10 changes: 3 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@ shaped directory tree and randomly places any number of files of any size within
## Installation
### Precompiled Static Binary
* Download Binary
- curl
```sh
sudo curl https://github.com/joshuaboud/gen-dataset/releases/download/v1.3/gen-dataset -o /usr/local/bin/gen-dataset
```
- wget
```sh
sudo wget https://github.com/joshuaboud/gen-dataset/releases/download/v1.3/gen-dataset -P /usr/local/bin
```
Expand All @@ -30,13 +25,14 @@ shaped directory tree and randomly places any number of files of any size within
### Usage
```
usage:
gen-dataset -c [-b -d -s -t -w -y] [path]
gen-dataset -c [-b -d -s -S -t -w -y] [path]

flags:
-b, --branches <int> - number of subdirectories per directory
-c, --count <int> - total number of files to create
-d, --depth <int> - number of directory levels
-s, --size <float [K..T][i]B> - file size
-s, --size <float[K..T][i]B> - file size
-S, --buff-size <float[K..T][i]B> - write buffer size (default=1M)
-t, --threads <int> - number of parallel file creation threads
-w, --max-wait <float (seconds)> - max random wait between file creation
-y, --yes - don't prompt before creating files
Expand Down
5 changes: 3 additions & 2 deletions src/impl/getopts.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,14 @@ static void usage(void){
std::cout <<
"gen-dataset Copyright (C) 2021 Josh Boudreau <jboudreau@45drives.com>\n"
"usage:\n"
" gen-dataset -c [-b -d -s -t -w -y] [path]\n"
" gen-dataset -c [-b -d -s -S -t -w -y] [path]\n"
"\n"
"flags:\n"
" -b, --branches <int> - number of subdirectories per directory\n"
" -c, --count <int> - total number of files to create\n"
" -d, --depth <int> - number of directory levels\n"
" -s, --size <float [K..T][i]B> - file size\n"
" -s, --size <float[K..T][i]B> - file size\n"
" -S, --buff-size <float[K..T][i]B> - write buffer size (default=1M)\n"
" -t, --threads <int> - number of parallel file creation threads\n"
" -w, --max-wait <float (seconds)> - max random wait between file creation\n"
" -y, --yes - don't prompt before creating files\n"
Expand Down

0 comments on commit 0d782cf

Please sign in to comment.