Seperate out even more, own dir for UIs

default UI is now in private/lib/uis/default.py
feature-admin-split
Darksider3 5 years ago
parent 5c6ecaf627
commit 192e70e4a2

@ -1,7 +1,6 @@
import argparse
import configparser import configparser
import logging import logging
import lib.default_cmd as default_cmd import lib.uis.default as default_cmd
args = default_cmd.argparser.parse_args() args = default_cmd.argparser.parse_args()
CONF_FILE = args.config CONF_FILE = args.config

@ -0,0 +1,6 @@
import argparse
import lib.cwd
argparser = argparse.ArgumentParser(description='Tilde administration tools')
argparser.add_argument('-c', '--config', default=lib.cwd.cwd,
type=str, help='Path to configuration file', required=False)

@ -1,10 +1,7 @@
import argparse import lib.uis.config_ui
import configparser
import logging argparser = lib.uis.config_ui.argparser
import lib.cwd
argparser = argparse.ArgumentParser(description='Tilde administration tools')
argparser.add_argument('-c', '--config', default=lib.cwd.cwd,
type=str, help='Path to configuration file', required=False)
# store_true just stores true when the command is supplied, so it doesn't need choices nor types # store_true just stores true when the command is supplied, so it doesn't need choices nor types
argparser.add_argument('-u', '--unapproved', default=False, action="store_true", argparser.add_argument('-u', '--unapproved', default=False, action="store_true",
help='only unapproved users. Default is only approved.', required=False) help='only unapproved users. Default is only approved.', required=False)
@ -16,4 +13,4 @@ argparser.add_argument('--Import', default=False, action="store_true",
help="Import Users from file. Affects currently only Import.py.\n" help="Import Users from file. Affects currently only Import.py.\n"
"Setting this to true will result in -f being interpreted as the input file to import " "Setting this to true will result in -f being interpreted as the input file to import "
"users from. The file MUST be a comma separated CSV file being readable having it's " "users from. The file MUST be a comma separated CSV file being readable having it's "
"defined columns written in the first line.") "defined columns written in the first line.")
Loading…
Cancel
Save