浏览代码

feat: unify argument parser of GUI and Core (#81)

Đỗ Trường Giang 2 年之前
父节点
当前提交
357dffd3f4
共有 1 个文件被更改,包括 7 次插入0 次删除
  1. 7 0
      src/taipy/_run.py

+ 7 - 0
src/taipy/_run.py

@@ -29,6 +29,13 @@ def _run(*apps: t.List[t.Union[Gui, Rest, Core]], **kwargs) -> t.Optional[t.Unio
     rest = __typing_get(apps, Rest)
     core = __typing_get(apps, Core)
 
+    if gui and core:
+        from taipy.core._version._version_cli import _VersioningCLI
+        from taipy.gui._gui_cli import _GuiCLI
+
+        _VersioningCLI._create_parser()
+        _GuiCLI._create_parser()
+
     if rest or core:
         if not core:
             core = Core()