diff options
| author | emkael <emkael@tlen.pl> | 2019-10-01 18:39:32 +0200 |
|---|---|---|
| committer | emkael <emkael@tlen.pl> | 2019-10-01 18:39:32 +0200 |
| commit | 835c002b4a9da9139837ddc6fdb31630ffee0de2 (patch) | |
| tree | 600b6f0571eefb93f44d6b07071380cb512917e1 /deal-converter.py | |
| parent | ad546b63fb6fada2a87f60b21f0a41d2d6bd419e (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.py | 4 |
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) |
