Skip to content

Commit e126767

Browse files
dawoonchunggguuss
authored andcommitted
Fix a typo in output message / remove duplicate parser assignment. (#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.
1 parent 03280fa commit e126767

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

vision/cloud-client/crop_hints/crop_hints.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,6 @@ def crop_to_hint(image_file):
9191
parser.add_argument('mode', help='Set to "crop" or "draw".')
9292
args = parser.parse_args()
9393

94-
parser = argparse.ArgumentParser()
95-
9694
if args.mode == 'crop':
9795
crop_to_hint(args.image_file)
9896
elif args.mode == 'draw':

0 commit comments

Comments
 (0)