From ab181fe816bf653afaca6d2cd187d2c266755dcf Mon Sep 17 00:00:00 2001 From: Daniel Roschka Date: Wed, 28 Dec 2016 16:04:03 +0100 Subject: [PATCH] Address review comments --- README.rst | 2 +- pipdeptree.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.rst b/README.rst index 6a90ee6..dad8744 100644 --- a/README.rst +++ b/README.rst @@ -243,7 +243,7 @@ Usage -j, --json Display dependency tree as json. This will yield "raw" output that may be used by external tools. This option overrides all other options. - --output OUTPUT_FORMAT + --graph-output OUTPUT_FORMAT Print a dependency graph in the specified output format. Available are all formats supported by GraphViz, e.g.: dot, jpeg, pdf, png, svg diff --git a/pipdeptree.py b/pipdeptree.py index 2ba5f3b..4131149 100644 --- a/pipdeptree.py +++ b/pipdeptree.py @@ -358,7 +358,7 @@ def dump_graphviz(tree, output_format='dot'): sys.exit(1) if output_format not in backend.FORMATS: - print('%s is no supported output format.' % output_format, + print('{} is no supported output format.'.format(output_format), file=sys.stderr) print('Supported formats are: %s' % ', '.join(sorted(backend.FORMATS)), file=sys.stderr) @@ -466,7 +466,7 @@ def main(): '"raw" output that may be used by external tools. ' 'This option overrides all other options.' )) - parser.add_argument('--output', dest='output_format', required=False, + parser.add_argument('--graph-output', dest='output_format', help=( 'Print a dependency graph in the specified output ' 'format. Available are all formats supported by '