Commit d4a77886 authored by Vibhu Agrawal's avatar Vibhu Agrawal
parents 659d1917 822ca3f1
......@@ -86,9 +86,8 @@ def create_parser():
)
parser.add_argument(
'path1',
nargs='?',
help='First file or directory to '
'compare. If omitted, tries to read a diffoscope diff from stdin.',
help='First file or directory to compare. Specify "-" to read a '
'diffoscope diff from stdin.',
)
parser.add_argument(
'path2',
......@@ -652,7 +651,7 @@ def run_diffoscope(parsed_args):
path1, path2 = parsed_args.path1, parsed_args.path2
if path2 is None:
logger.debug("Loading diff from stdin")
if path1 is None or path1 == '-':
if path1 == '-':
difference = load_diff(sys.stdin, "stdin")
else:
try:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment