2014-08-24 09:42:48 +02:00
|
|
|
import sys
|
|
|
|
|
|
|
|
import commands # noqa
|
|
|
|
from parser import parser
|
|
|
|
|
|
|
|
|
|
|
|
if len(sys.argv) < 2:
|
2019-01-06 16:22:33 +01:00
|
|
|
args = parser.parse_args(["--help"])
|
2014-08-24 09:42:48 +02:00
|
|
|
else:
|
|
|
|
args = parser.parse_args()
|
|
|
|
|
|
|
|
# Runs the command end exits the script with the return-code of the command
|
|
|
|
exit(args.func(args))
|