[cli/util] fix requires to use the right stack frame, remove --print as "-" does the job

This commit is contained in:
Romain Dorgueil
2017-10-13 17:25:42 +02:00
parent 64875a05bd
commit dc59c88c3d
2 changed files with 2 additions and 10 deletions

View File

@ -85,7 +85,6 @@ def execute(
writer_option=None,
option=None,
filter=None,
do_print=False
):
reader_factory, reader_option = resolve_factory(reader, input, READER, (option or []) + (reader_option or []))
@ -121,7 +120,7 @@ def register(parser):
parser.add_argument(
'--' + WRITER,
'-w',
help='Choose the writer factory if it cannot be detected from extension, or if detection is wrong.'
help='Choose the writer factory if it cannot be detected from extension, or if detection is wrong (use - for console pretty print).'
)
parser.add_argument(
'--filter',
@ -130,13 +129,6 @@ def register(parser):
action='append',
help='Add a filter between input and output',
)
parser.add_argument(
'--print',
'-p',
dest='do_print',
action='store_true',
help='Replace the output by a pretty printer.',
)
parser.add_argument(
'--option',
'-O',