Skip to content

Commit

Permalink
[bugfix] Add startup argument for abaqus.cae (#5575)
Browse files Browse the repository at this point in the history
Introduced #5492

(cherry picked from commit dc46d33)
  • Loading branch information
haiiliin authored and mergify[bot] committed Mar 22, 2024
1 parent 034ba9a commit 5619733
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/abqpy/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ def cae(
database: str | None = None,
replay: str | None = None,
recover: str | None = None,
startup: str | None = None,
gui: bool = False,
envstartup: bool = True,
savedOptions: bool = True,
Expand All @@ -80,6 +81,8 @@ def cae(
The name of the replay file to open, by default None
recover : str, optional
The name of the journal file to open, by default None
startup : str, optional
The name of the startup file to open, by default None
gui : bool, optional
Run Abaqus/CAE command with the graphical user interface (GUI mode), by default False.
envstartup : bool, optional
Expand All @@ -100,9 +103,10 @@ def cae(
"""
# Parse options
options = self._parse_options(script=script if gui else None, noGUI=script if not gui else None,
database=database, replay=replay, recover=recover, noenvstartup=not envstartup,
noSavedOptions=not savedOptions, noSavedGuiPrefs=not savedGuiPrefs,
noStartupDialog=not startupDialog, custom=custom, guiTester=guiTester,
database=database, replay=replay, recover=recover, startup=startup,
noenvstartup=not envstartup, noSavedOptions=not savedOptions,
noSavedGuiPrefs=not savedGuiPrefs, noStartupDialog=not startupDialog,
custom=custom, guiTester=guiTester,
guiRecord=True if guiRecord is True else None,
guiNoRecord=True if guiRecord is False else None) # fmt: skip
args = ("--", *args) if args else ()
Expand Down

0 comments on commit 5619733

Please sign in to comment.