Skip to content

Commit b8efc48

Browse files
committed
Update --list-formats output to be ReST #16
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
1 parent 17e48aa commit b8efc48

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/extractcode/cli.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,16 +45,16 @@ def print_archive_formats(ctx, param, value):
4545
by_kind = groupby(sorted(archive_handlers, key=kindkey), key=kindkey)
4646

4747
for kind, handlers in by_kind:
48-
click.echo('--------------------------------------------')
49-
click.echo(f'Archives of kind: {kind_labels[kind]}')
48+
click.echo(f'Archive format kind: {kind_labels[kind]}')
49+
click.echo('~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~')
5050
for handler in handlers:
5151
exts = ', '.join(handler.extensions)
5252
mimes = ', '.join(handler.mimetypes)
5353
types = ', '.join(handler.filetypes)
5454
click.echo(f' name: {handler.name}')
55-
click.echo(f' extensions: {exts}')
56-
click.echo(f' filetypes : {types}')
57-
click.echo(f' mimetypes : {mimes}')
55+
click.echo(f' - extensions: {exts}')
56+
click.echo(f' - filetypes : {types}')
57+
click.echo(f' - mimetypes : {mimes}')
5858
click.echo('')
5959

6060
ctx.exit()

0 commit comments

Comments
 (0)