From 1827ee564c017c549bee0c482868d3d8dcef115f Mon Sep 17 00:00:00 2001 From: dadav <33197631+dadav@users.noreply.github.com> Date: Fri, 1 Nov 2019 10:04:36 +0100 Subject: [PATCH] Add version option --- bin/pwnagotchi | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/bin/pwnagotchi b/bin/pwnagotchi index 82e4712..e140924 100755 --- a/bin/pwnagotchi +++ b/bin/pwnagotchi @@ -31,7 +31,15 @@ if __name__ == '__main__': parser.add_argument('--debug', dest="debug", action="store_true", default=False, help="Enable debug logs.") + parser.add_argument('--version', dest="version", action="store_true", default=False, + help="Prints the version.") + args = parser.parse_args() + + if args.version: + print(pwnagotchi.version) + SystemExit(0) + config = utils.load_config(args) utils.setup_logging(args, config)