diff --git a/docs/usage.md b/docs/usage.md index 8e34d40..22040bc 100644 --- a/docs/usage.md +++ b/docs/usage.md @@ -131,3 +131,4 @@ Command line options | `--mark-code` | Mark code with [code]...[/code] blocks | `--no-wrap-links` | Do not wrap links during text wrapping. Implies `--reference-links` | `--decode-errors`=`HANDLER` | What to do in case an error is encountered. `ignore`, `strict`, `replace` etc. +| `--pad-tables` | Use padding to make tables look good. diff --git a/html2text/cli.py b/html2text/cli.py index 7ece36d..49bef76 100644 --- a/html2text/cli.py +++ b/html2text/cli.py @@ -24,7 +24,7 @@ class bcolors: # pragma: no cover version='%prog ' + ".".join(map(str, __version__)) ) p.add_option( - "--pad_tables", + "--pad-tables", dest="pad_tables", action="store_true", default=config.PAD_TABLES, diff --git a/test/test_html2text.py b/test/test_html2text.py index ade0a69..724d4d6 100644 --- a/test/test_html2text.py +++ b/test/test_html2text.py @@ -172,7 +172,7 @@ def test_func(self): if base_fn.startswith('pad_table'): module_args['pad_tables'] = True - cmdline_args.append('--pad_tables') + cmdline_args.append('--pad-tables') if base_fn not in ['bodywidth_newline.html', 'abbr_tag.html']: test_func = None