Skip to content

Commit

Permalink
Update help (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
moonbings authored Feb 17, 2022
1 parent 3403c5a commit 501bb2b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 13 deletions.
11 changes: 4 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ $ export OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES
```

```
usage: synthtiger [-h] [-o PATH] [-c INTEGER] [-w INTEGER] [-v] SCRIPT NAME [CONFIG]
usage: synthtiger [-h] [-o DIR] [-c NUM] [-w NUM] [-v] SCRIPT NAME [CONFIG]
positional arguments:
SCRIPT Script file path.
Expand All @@ -57,12 +57,9 @@ positional arguments:
optional arguments:
-h, --help show this help message and exit
-o PATH, --output PATH
Directory path to save data.
-c INTEGER, --count INTEGER
Number of data. [default: 100]
-w INTEGER, --worker INTEGER
Number of workers. If 0, It generates data in the main process. [default: 0]
-o DIR, --output DIR Directory path to save data.
-c NUM, --count NUM Number of data. [default: 100]
-w NUM, --worker NUM Number of workers. If 0, It generates data in the main process. [default: 0]
-v, --verbose Print error messages while generating data.
```

Expand Down
6 changes: 3 additions & 3 deletions synthtiger/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,22 +39,22 @@ def parse_args():
parser.add_argument(
"-o",
"--output",
metavar="PATH",
metavar="DIR",
type=str,
help="Directory path to save data.",
)
parser.add_argument(
"-c",
"--count",
metavar="INTEGER",
metavar="NUM",
type=int,
default=100,
help="Number of data. [default: 100]",
)
parser.add_argument(
"-w",
"--worker",
metavar="INTEGER",
metavar="NUM",
type=int,
default=0,
help="Number of workers. If 0, It generates data in the main process. [default: 0]",
Expand Down
4 changes: 2 additions & 2 deletions tools/create_colormap.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,15 +111,15 @@ def parse_args():
)
parser.add_argument(
"--max_k",
metavar="INTEGER",
metavar="NUM",
type=int,
default=3,
help="Maximum number of colors. [default: 3]",
)
parser.add_argument(
"-w",
"--worker",
metavar="INTEGER",
metavar="NUM",
type=int,
default=1,
help="Number of workers. [default: 1]",
Expand Down
2 changes: 1 addition & 1 deletion tools/extract_font_charset.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def parse_args():
parser.add_argument(
"-w",
"--worker",
metavar="INTEGER",
metavar="NUM",
type=int,
default=1,
help="Number of workers. [default: 1]",
Expand Down

0 comments on commit 501bb2b

Please sign in to comment.