Skip to content

Commit

Permalink
Fix a typo in output message / remove duplicate parser assignment. (#…
Browse files Browse the repository at this point in the history
…1999)

* Fix a typo in output message.

Fixes a minor typo error in the `draw_hint` function. Because the tutorial is one of the starting points for new users, it's worth correcting it to avoid confusion.

* Remove duplicate `argparse` assignment.

`argparse.ArgumentParser()` was assigned twice in if statement so removed the duplicate.
  • Loading branch information
dawoonchung authored and gguuss committed Jul 24, 2019
1 parent 03280fa commit e126767
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions vision/cloud-client/crop_hints/crop_hints.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,6 @@ def crop_to_hint(image_file):
parser.add_argument('mode', help='Set to "crop" or "draw".')
args = parser.parse_args()

parser = argparse.ArgumentParser()

if args.mode == 'crop':
crop_to_hint(args.image_file)
elif args.mode == 'draw':
Expand Down

0 comments on commit e126767

Please sign in to comment.