From 386e9c717827872c6679f40bc106c2f9172c6833 Mon Sep 17 00:00:00 2001 From: Marcus Bakker Date: Fri, 30 Oct 2020 21:23:15 +0100 Subject: [PATCH] Fixed a bug which did not allow the value 'all' for the argument '-p/--platform' --- dettect.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dettect.py b/dettect.py index 96a56bb..de084dd 100644 --- a/dettect.py +++ b/dettect.py @@ -335,7 +335,7 @@ def _platform_lookup(): Lookup the platform value with the correct capitalisation. return: lambda function to be used by argparse type= """ - return lambda p: PLATFORMS.get(p.lower(), '') + return lambda p: PLATFORMS.get(p.lower(), '') if p.lower() != 'all' else 'all' def _prepare_folders():