diff --git a/pymule/__main__.py b/pymule/__main__.py index 0e0236670d7f5d419e2ffd553fcc0d5fc1f02214..1fbcf3a8382109319ab611777891b722e06d542c 100644 --- a/pymule/__main__.py +++ b/pymule/__main__.py @@ -9,3 +9,4 @@ if __name__ == '__main__': createrun.create_parser(subparsers) parsed = parser.parse_args() + parsed.func(parsed) diff --git a/pymule/createrun.py b/pymule/createrun.py index f97e33c672d5edfde8564889e64f08b276c5a12d..5baaca1bcfc8ce80c288d7562363e84b500c61ee 100644 --- a/pymule/createrun.py +++ b/pymule/createrun.py @@ -274,6 +274,7 @@ def create_parser(subparsers): '-s', '--stat', action="append", help="comma seperated list of piece,pc,pi,c,i[,seeds to use]" ) + parser.set_defaults(func=main) def parseargs(parsed):