Skip to content

Commit

Permalink
Add --verify flag to display final file with exo-open
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Morgan committed Jan 15, 2019
1 parent 731e8cf commit 12c0c2e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions scanbro.py
Original file line number Diff line number Diff line change
Expand Up @@ -618,6 +618,12 @@ def execute(who, input_file, output_file):
action='count',
help='clean up intermediary (1) and input (2)',
)
parser.add_argument(
'-v', '--verify',
dest='verify',
action='store_true',
help='show first file from final output with exo-open',
)

# Scanner options:
DEFAULT_SCANNER = Brother_MFC_J5730DW
Expand Down Expand Up @@ -773,3 +779,5 @@ def make_ghostscript(args):
trim=args.trim,
dryrun=args.dryrun,
)
if args.verify:
Processor.run_cmd(['exo-open', output[0]])

0 comments on commit 12c0c2e

Please sign in to comment.