Commit 8f8e1bde authored by PizZaKatZe's avatar PizZaKatZe

Update default data source URL

parent 0d520b3a
......@@ -24,7 +24,7 @@ from sys import stdout
from jht_flyergen.engine import fetch_data, render, generate_tex, process_sessions, read_data
TEST_URL = '' # pylint: disable=line-too-long
DEFAULT_URL = '' # pylint: disable=line-too-long
def parse_arguments(args):
"""Parses command-line arguments.
......@@ -33,7 +33,7 @@ def parse_arguments(args):
parser.add_argument('-d', '--day', nargs='?', default=28,
help='day of month (default: 28)')
parser.add_argument('-l', '--links', action='store_true',
help='generate QR codes with links to sessions\'s wiki pages')
help='generate QR codes with links to sessions\' wiki pages')
parser.add_argument('-m', '--homepage', default='',
help='JHT homepage URL')
parser.add_argument('-p', '--print',
......@@ -45,9 +45,9 @@ def parse_arguments(args):
help='path to output file; if omitted raw PDF data is written to stdout')
sources = parser.add_argument_group('data sources').add_mutually_exclusive_group(required=True)
sources.add_argument('-u', '--url', nargs='?', const=TEST_URL,
sources.add_argument('-u', '--url', nargs='?', const=DEFAULT_URL,
help='URL to fetch JSON data from; '
'if URL is omitted, a hard-coded URL returning test data is used')
'if URL is omitted, a hard-coded default URL is used')
sources.add_argument('-f', '--file', dest='path',
help='path to file containing JSON data')
return parser.parse_args(args)
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment