fixes issue handling of port configuration

This commit is contained in:
telegnom 2018-03-07 21:28:32 +01:00 committed by Philipp Klaus
parent 8dac5342c7
commit 0a2cf12c39

View File

@ -215,7 +215,7 @@ def print_text():
def main(): def main():
global DEBUG, FONTS, BACKEND_CLASS, CONFIG global DEBUG, FONTS, BACKEND_CLASS, CONFIG
parser = argparse.ArgumentParser(description=__doc__) parser = argparse.ArgumentParser(description=__doc__)
parser.add_argument('--port', default=8013) parser.add_argument('--port', default=False)
parser.add_argument('--loglevel', type=lambda x: getattr(logging, x.upper()), default=False) parser.add_argument('--loglevel', type=lambda x: getattr(logging, x.upper()), default=False)
parser.add_argument('--font-folder', default=False, help='folder for additional .ttf/.otf fonts') parser.add_argument('--font-folder', default=False, help='folder for additional .ttf/.otf fonts')
parser.add_argument('--default-label-size', default=False, help='Label size inserted in your printer. Defaults to 62.') parser.add_argument('--default-label-size', default=False, help='Label size inserted in your printer. Defaults to 62.')