def _argvchk():
    if len(sys.argv) == 1:
        return True
    elif ('-h' or '--help') in sys.argv[1]:
        print "\nThis daemon polls Alerta's Management URI remotely and determines if there is a problem.\n\t\
        Usage: %s (-f = foreground)\n" % ((sys.argv[0]).split('/')[-1])
        sys.exit(0)
    elif '-f' in sys.argv[1]:
        print "Debug Mode: Staying in foreground...\n"
        return False
    else:
        print >>sys.stderr, "Error: Unknown Option"
        sys.exit(1)
dataset/ETHPy150Open guardian/alerta/contrib/watchdog.py/_argvchk/original