2006-08-08 16:57:27 +01:00
|
|
|
#!/usr/bin/python
|
|
|
|
#
|
2006-08-08 17:16:28 +01:00
|
|
|
# python wrapper for the Scyther command-line tool
|
2006-08-08 16:57:27 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
#---------------------------------------------------------------------------
|
|
|
|
|
|
|
|
""" Import externals """
|
|
|
|
import sys
|
|
|
|
|
|
|
|
#---------------------------------------------------------------------------
|
|
|
|
|
|
|
|
""" Import scyther components """
|
|
|
|
import Scyther.Scyther as Scyther
|
|
|
|
|
|
|
|
#---------------------------------------------------------------------------
|
|
|
|
|
|
|
|
def usage():
|
|
|
|
x = Scyther.Scyther()
|
|
|
|
x.xml = False
|
|
|
|
x.options = "--help"
|
|
|
|
x.verify()
|
|
|
|
return x
|
|
|
|
|
|
|
|
def simpleRun(args):
|
|
|
|
x = Scyther.Scyther()
|
|
|
|
x.options = args
|
|
|
|
x.verify()
|
|
|
|
return x
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
pars = sys.argv[1:]
|
|
|
|
if len(pars) == 0:
|
|
|
|
print usage()
|
|
|
|
else:
|
|
|
|
print simpleRun(" ".join(pars))
|
|
|
|
|
|
|
|
|