summaryrefslogtreecommitdiffstats
path: root/contrib/caldav/calcurse-caldav.py
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/caldav/calcurse-caldav.py')
-rwxr-xr-xcontrib/caldav/calcurse-caldav.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/contrib/caldav/calcurse-caldav.py b/contrib/caldav/calcurse-caldav.py
index bc6d714..7519af3 100755
--- a/contrib/caldav/calcurse-caldav.py
+++ b/contrib/caldav/calcurse-caldav.py
@@ -489,9 +489,6 @@ parser.add_argument('--syncdb', action='store', dest='syncdbfn',
parser.add_argument('--hookdir', action='store', dest='hookdir',
default=hookdir,
help='path to the calcurse-caldav hooks directory')
-parser.add_argument('--password', action='store', dest='password',
- default=None,
- help='password for basic authentication')
parser.add_argument('--authcode', action='store', dest='authcode',
default=None,
help='auth code for OAuth2 authentication')
@@ -507,7 +504,6 @@ configfn = args.configfn
lockfn = args.lockfn
syncdbfn = args.syncdbfn
hookdir = args.hookdir
-password = args.password
authcode = args.authcode
verbose = args.verbose
debug = args.debug
@@ -567,8 +563,10 @@ if config.has_option('Auth', 'UserName'):
else:
username = None
-if config.has_option('Auth', 'Password') and not password:
+if config.has_option('Auth', 'Password'):
password = config.get('Auth', 'Password')
+else:
+ password = None
if config.has_section('CustomHeaders'):
custom_headers = dict(config.items('CustomHeaders'))