From 739df9054f84fde0729e9417f4ffe07c3ad73c7b Mon Sep 17 00:00:00 2001
From: Yannick Ulrich <yannick.ulrich@psi.ch>
Date: Fri, 21 Feb 2020 12:33:24 +0100
Subject: [PATCH] Integrated create-menu properly in #17 (#6)

---
 pymule/__main__.py  | 1 +
 pymule/createrun.py | 1 +
 2 files changed, 2 insertions(+)

diff --git a/pymule/__main__.py b/pymule/__main__.py
index 0e02366..1fbcf3a 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 f97e33c..5baaca1 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):
-- 
GitLab