Skip to content
Browse files

Fixed error handling of options if no options passed

  • Loading branch information...
1 parent 067196c commit a6950ac074fbb60ffa6defe938de1f8a35de9847 @AutomatedTester AutomatedTester committed May 31, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 garmr.py
View
2 garmr.py
@@ -167,7 +167,7 @@ def main():
help="Name of file that you wish to write to")
(options, args) = parser.parse_args()
- if not options:
+ if options.aut is None or options.file_name is None:
parser.error("Please supply an argument")
garmr = Garmr(options.aut)

0 comments on commit a6950ac

Please sign in to comment.
Something went wrong with that request. Please try again.