Skip to content

Commit

Permalink
Only show I/O files' paths when using --verbose
Browse files Browse the repository at this point in the history
  • Loading branch information
remram44 committed Sep 9, 2015
1 parent 37305d7 commit caedf0f
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions reprounzip/reprounzip/pack_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,10 @@ def showfiles(args):
for input_name, f in iteritems(config.inputs_outputs):
if not f.read_runs:
continue
print(" %s (%s)" % (input_name, f.path))
if args.verbosity >= 2:
print(" %s (%s)" % (input_name, f.path))
else:
print(" %s" % input_name)
if assigned_input_files.get(input_name) is not None:
assigned = assigned_input_files[input_name]
else:
Expand All @@ -223,7 +226,10 @@ def showfiles(args):
print("Output files:")
for output_name, f in iteritems(config.inputs_outputs):
if f.write_runs:
print(" %s (%s)" % (output_name, f.path))
if args.verbosity >= 2:
print(" %s (%s)" % (output_name, f.path))
else:
print(" %s" % output_name)
else:
print("Output files: none")

Expand All @@ -235,15 +241,21 @@ def showfiles(args):
print("Input files:")
for input_name, f in iteritems(config.inputs_outputs):
if f.read_runs:
print(" %s (%s)" % (input_name, f.path))
if args.verbosity >= 2:
print(" %s (%s)" % (input_name, f.path))
else:
print(" %s" % input_name)
else:
print("Input files: none")

if any(f.write_runs for f in itervalues(config.inputs_outputs)):
print("Output files:")
for output_name, f in iteritems(config.inputs_outputs):
if f.write_runs:
print(" %s (%s)" % (output_name, f.path))
if args.verbosity >= 2:
print(" %s (%s)" % (output_name, f.path))
else:
print(" %s" % output_name)
else:
print("Output files: none")

Expand Down

0 comments on commit caedf0f

Please sign in to comment.