From be5263d74c17d19357175cba5e6c38c2a7769f0d Mon Sep 17 00:00:00 2001 From: Jeroen Oudshoorn Date: Fri, 15 Sep 2023 23:15:54 +0200 Subject: [PATCH] v2.3.9 Signed-off-by: Jeroen Oudshoorn --- bin/pwnagotchi | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bin/pwnagotchi b/bin/pwnagotchi index 0418d88d..290a5b56 100755 --- a/bin/pwnagotchi +++ b/bin/pwnagotchi @@ -114,6 +114,9 @@ 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="Print the version.") + parser.add_argument('--print-config', dest="print_config", action="store_true", default=False, help="Print the configuration.") @@ -130,6 +133,10 @@ if __name__ == '__main__': rc = plugins_cmd.handle_cmd(args, config) sys.exit(rc) + if args.version: + print(pwnagotchi.__version__) + sys.exit(0) + if args.donate: print("Donations can made @ https://www.patreon.com/pwnagotchi_torch \n\nBut only if you really want to!") sys.exit(0)