summaryrefslogtreecommitdiff
path: root/deal-converter.py
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2019-10-01 18:39:32 +0200
committeremkael <emkael@tlen.pl>2019-10-01 18:39:32 +0200
commit835c002b4a9da9139837ddc6fdb31630ffee0de2 (patch)
tree600b6f0571eefb93f44d6b07071380cb512917e1 /deal-converter.py
parentad546b63fb6fada2a87f60b21f0a41d2d6bd419e (diff)
Taking advantage of pybcdd's option to write only JFR double-dummy fields
Diffstat (limited to 'deal-converter.py')
-rw-r--r--deal-converter.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/deal-converter.py b/deal-converter.py
index ad5fc20..ee0c3d5 100644
--- a/deal-converter.py
+++ b/deal-converter.py
@@ -12,6 +12,8 @@ parser = argparse.ArgumentParser(
epilog='Supported formats: BER BHG BRI CDS CSV DGE DLM DUP PBN RZD.\n' + \
'Formats are auto-detected based on file extension.\n' + \
'To display deals on STDOUT, provide "-" as an output file name.')
+parser.add_argument('--jfr', action='store_true',
+ help='For PBN file, write only JFR DD fields')
parser.add_argument('input', metavar='INPUT_FILE',
help='Input file path')
parser.add_argument('output', metavar='OUTPUT_FILE', nargs='*',
@@ -24,7 +26,7 @@ def _warning(msg, *args, **kwargs):
warnings.showwarning = _warning
try:
- converter = DealConverter(arguments.input)
+ converter = DealConverter(arguments.input, jfr_only=arguments.jfr)
converter.output(arguments.output)
except RuntimeError as e:
print('ERROR: %s' % (str(e)), file=sys.stderr)