mirror of
https://github.com/jayofelony/pwnagotchi.git
synced 2025-07-01 18:37:27 -04:00
Merge pull request #488 from dadav/feature/version-option
Add version option
This commit is contained in:
@ -31,7 +31,15 @@ if __name__ == '__main__':
|
|||||||
parser.add_argument('--debug', dest="debug", action="store_true", default=False,
|
parser.add_argument('--debug', dest="debug", action="store_true", default=False,
|
||||||
help="Enable debug logs.")
|
help="Enable debug logs.")
|
||||||
|
|
||||||
|
parser.add_argument('--version', dest="version", action="store_true", default=False,
|
||||||
|
help="Prints the version.")
|
||||||
|
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
|
if args.version:
|
||||||
|
print(pwnagotchi.version)
|
||||||
|
SystemExit(0)
|
||||||
|
|
||||||
config = utils.load_config(args)
|
config = utils.load_config(args)
|
||||||
utils.setup_logging(args, config)
|
utils.setup_logging(args, config)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user