Permalink
Browse files

Fixed no arguments being passed throwing an error

  • Loading branch information...
1 parent 6ada6b6 commit c035c972c4ec82aa7958d3b6f12b2ed5cebff5f6 @AutomatedTester AutomatedTester committed May 19, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 garmr.py
View
@@ -89,7 +89,9 @@ def main():
help="File name with URLS to test, Currently not available")
(options, args) = parser.parse_args()
-
+ if len(args) == 0:
+ parser.error("Please supply an argument")
+
garmr = Garmr(options.aut)
garmr.trace_checks()
garmr.xframe_checks()

0 comments on commit c035c97

Please sign in to comment.