Skip to content

Commit

Permalink
fix: python argparse required --btable
Browse files Browse the repository at this point in the history
  • Loading branch information
yihuajack committed Sep 5, 2022
1 parent 10cc2e4 commit f8ed06c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ sootty "waveform.vcd" -o > image.svg

with a Value Change Dump (VCD) or Extended VCD (EVCD) file to produce an svg waveform diagram. Optional arguments include:
- `-b | --break FORMULA` Specify the formula for the points in time to be highlighted.
- `--btable` Print the wire value table at breakpoints to `stdout` (`-b` is required).
- `-e | --end FORMULA` Specify the end of the window.
- `-h | --help` Show the help message and exit.
- `-l | --length N` Specify the number of ticks in the window (mutually exclusive with `-e`).
Expand Down
2 changes: 1 addition & 1 deletion sootty/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ def parse_args():
parser.add_argument(
"-b",
"--break",
required='--btable' in sys.argv,
type=str,
metavar="FORMULA",
dest="breakpoints",
Expand All @@ -48,7 +49,6 @@ def parse_args():
parser.add_argument(
'--btable',
action="store_true",
required='-b' in sys.argv,
help="print a breakpoint table to stdout",
)
parser.add_argument(
Expand Down

0 comments on commit f8ed06c

Please sign in to comment.