summaryrefslogtreecommitdiff
path: root/deal-converter.py
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2019-11-07 20:47:57 +0100
committeremkael <emkael@tlen.pl>2019-11-07 20:47:57 +0100
commit62f9821422765d2dd24271f21de68d388949f97a (patch)
treec1eb1d2c9bef8d3d1ce7814291a31ad2c9925d2b /deal-converter.py
parent29c7e9fe2d7e2c6b6a67d7daf38b29c1a10f77a7 (diff)
Configurable print-out column count
Diffstat (limited to 'deal-converter.py')
-rw-r--r--deal-converter.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/deal-converter.py b/deal-converter.py
index 7e5e91d..43345cb 100644
--- a/deal-converter.py
+++ b/deal-converter.py
@@ -15,6 +15,8 @@ parser = argparse.ArgumentParser(
'To print deals to HTML file, use *.html output file.\n')
parser.add_argument('--jfr', action='store_true',
help='For PBN file, write only JFR DD fields')
+parser.add_argument('--columns', type=int, default=None,
+ help='For HTML files, print-out column count')
parser.add_argument('input', metavar='INPUT_FILE',
help='Input file path')
parser.add_argument('output', metavar='OUTPUT_FILE', nargs='*',
@@ -27,7 +29,9 @@ def _warning(msg, *args, **kwargs):
warnings.showwarning = _warning
try:
- converter = DealConverter(arguments.input, jfr_only=arguments.jfr)
+ converter = DealConverter(
+ arguments.input,
+ jfr_only=arguments.jfr, columns=arguments.columns)
converter.output(arguments.output)
except RuntimeError as e:
print('ERROR: %s' % (str(e)), file=sys.stderr)