Code: Alles auswählen
#!/usr/bin/python
from __future__ import with_statement
import sys, socket, getopt
from contextlib import closing
HOST = '' # '
sys.exit(2)
def main(argv):
identifier = ''
try:
opts, args = getopt.getopt(argv,"hi:",["help","identifier="])
except getopt.GetoptError:
usage()
for opt,arg in opts:
if opt in ("-h", "--help"):
usage()
elif opt in ("-i", "--identifier"):
identifier = arg
if identifier == '':
usage()
askdomiq(identifier)
if __name__ == "__main__":
main(sys.argv[1:])