diff options
| author | Neels Hofmeyr <neels@hofmeyr.de> | 2018-03-25 01:01:32 +0100 | 
|---|---|---|
| committer | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2018-03-26 13:03:19 +0000 | 
| commit | 167f808d7641f2a23f247cb1f66ec93d026ca366 (patch) | |
| tree | f0020182791385778091e95a68512dc86a4a8e03 /contrib | |
| parent | 21946e8f5dbc0c7128ac82991017ec6d4c99d0d1 (diff) | |
contrib/fsm-to-dot: add -h option to print basic instructions
Change-Id: I196033e44d50ebb73cf9b44cbdc94a2b8b4f98ce
Diffstat (limited to 'contrib')
| -rwxr-xr-x | contrib/fsm-to-dot.py | 4 | 
1 files changed, 4 insertions, 0 deletions
diff --git a/contrib/fsm-to-dot.py b/contrib/fsm-to-dot.py index 06d2df10..3e9678d3 100755 --- a/contrib/fsm-to-dot.py +++ b/contrib/fsm-to-dot.py @@ -15,6 +15,10 @@ No proper C parsing is done here (pycparser sucked, unfortunately).  import sys, re, os +if '-h' in sys.argv or '--help' in sys.argv: +  print(__doc__) +  exit(0) +  def err(msg):    sys.stderr.write(msg + '\n')  | 
