From fb620447c7a836ff131133b9cb003eaa2b23715d Mon Sep 17 00:00:00 2001 From: Darksider3 Date: Sat, 30 May 2020 12:22:09 +0200 Subject: [PATCH] config_ui: Always point out that the script can operate on the ENV --- private/backup.py | 2 +- private/lib/uis/config_ui.py | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/private/backup.py b/private/backup.py index 52adf30..0d1ce30 100755 --- a/private/backup.py +++ b/private/backup.py @@ -126,7 +126,7 @@ if __name__ == "__main__": config = configparser.ConfigParser() config.read(args.config) L = ListUsers(config['DEFAULT']['applications_db'], - unapproved=args.unapproved, approved=args.approved) + unapproved=args.unapproved, approved=args.approved) fetch = L.get_fetch() if fetch: B = Backup(args.file) diff --git a/private/lib/uis/config_ui.py b/private/lib/uis/config_ui.py index 6f70e82..8418f1f 100644 --- a/private/lib/uis/config_ui.py +++ b/private/lib/uis/config_ui.py @@ -1,6 +1,9 @@ import argparse import lib.cwd -argparser = argparse.ArgumentParser(description='Tilde administration tools ', conflict_handler="resolve") +argparser = argparse.ArgumentParser(description='Tilde administration tools ', + conflict_handler="resolve") argparser.add_argument('-c', '--config', default=lib.cwd.cwd, - type=str, help='Path to configuration file', required=False) + type=str, + help='Path to configuration file. If not set, we look for it in $TILDE_CONF', + required=False)