7 def argv_to_dict(argv):
9 NOTE: very bare-bones, no error checking, will fail easily.
23 d = argv_to_dict(sys.argv[1:])
29 print "No type specified (--type <type>)"
35 print "No hostname specified (-H <hostname>)"
38 # TODO: have two thresholds. One for warning, another for critical.
40 print "No cycles detected for %s" % hostname
44 if __name__ == '__main__':