Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def parse_args():
parser = argparse.ArgumentParser(
description="A Networked LED Effect Controller")
parser.add_argument(
'--version',
action='version',
version='ledfx {ver}'.format(ver=PROJECT_VERSION))
parser.add_argument(
'-c',
'--config',
dest="config",
help="Directory that contains the configuration files",
default=config_helpers.get_default_config_directory(),
type=str)
parser.add_argument(
'--open-ui',
action='store_true',
help='Automatically open the webinterface')
parser.add_argument(
'-v',
'--verbose',
dest="loglevel",
help="set loglevel to INFO",
action='store_const',
const=logging.INFO)
parser.add_argument(
'-vv',
'--very-verbose',
dest="loglevel",