From a4343ae04c88e1f452bc0cf7a124be26b487e4b3 Mon Sep 17 00:00:00 2001 From: Daniel Rojas Date: Fri, 15 Oct 2021 15:07:58 +0200 Subject: [PATCH] Sort `--format` flags alphabetically --- src/wireviz/wv_cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wireviz/wv_cli.py b/src/wireviz/wv_cli.py index eb126e0..167e761 100644 --- a/src/wireviz/wv_cli.py +++ b/src/wireviz/wv_cli.py @@ -13,7 +13,7 @@ from wireviz import APP_NAME, __version__ import wireviz.wireviz as wv from wireviz.wv_helper import open_file_read -format_codes = {'c': 'csv', 'g': 'gv', 'p': 'png', 's': 'svg', 't': 'tsv', 'c': 'csv', 'h': 'html', 'P': 'pdf'} +format_codes = {'c': 'csv', 'g': 'gv', 'h': 'html', 'p': 'png', 'P': 'pdf', 's': 'svg', 't': 'tsv'} epilog = 'The -f or --format option accepts a string containing one or more of the following characters to specify which file types to output:\n' epilog += ', '.join([f'{key} ({value.upper()})' for key, value in format_codes.items()])