From 418e06394e33a7f0e358581e1140af4438be0f02 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Beno=C3=AEt=20Fontaine?= Date: Thu, 28 Mar 2019 22:18:19 +0100 Subject: [PATCH] Reverse argument --redact-password : print passwords in settings if set --- getmyancestors.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/getmyancestors.py b/getmyancestors.py index 1ec8c0b..b9ca1d8 100755 --- a/getmyancestors.py +++ b/getmyancestors.py @@ -949,7 +949,7 @@ if __name__ == '__main__': username if action.dest is 'u' else '******' - if action.dest is 'p' and args.redact_password + if action.dest is 'p' and not args.redact_password else password if action.dest is 'p' else str(vars(args)[action.dest].name) -- 2.52.0