diff options
Diffstat (limited to 'firewatch/firewatch.py')
-rw-r--r-- | firewatch/firewatch.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/firewatch/firewatch.py b/firewatch/firewatch.py index df17e8a..5360ad2 100644 --- a/firewatch/firewatch.py +++ b/firewatch/firewatch.py @@ -189,8 +189,15 @@ def main(): help=f'i[{"|".join([x for x in time_units.keys()])}]' ' (120s, 12h, 1d, 2w, 3m, 4y)') + parser.add_argument('--version', '-V', action='store_true', + help='Display software version') args = parser.parse_args() + if args.version: + from . import __version__ + print(__version__) + exit(0) + order = False # Ascending if args.order != 'asc': order = True # Descending |