Commit 40e0ccd9 authored by Paul McCarthy's avatar Paul McCarthy 🚵
Browse files

Merge branch 'rf/cli_help_fix' into 'master'

RF: Quieten logging before arguments are parsed.

See merge request fsl/ukbparse!82
parents 7e7f2fbd c1791c00
......@@ -35,13 +35,19 @@ log = logging.getLogger(__name__)
def main(argv=None):
"""``ukbparse`` entry point. """
# Make sure built in plugins are registered,
# as they are queried in the command-line help
# Make sure built in plugins are
# registered, as they are queried
# in the command-line help. Set
# logging to critical until we've
# parsed command-line args.
logging.getLogger().setLevel(logging.CRITICAL)
custom.registerBuiltIns()
args, argv = config.parseArgsWithConfigFile(argv)
date = datetime.date.today()
# Now that args are passed,
# we can set up logging properly.
configLogging(args)
log.info('ukbparse %s', ukbparse.__version__)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment