Skip to content

Commit 3a6d79a

Browse files
committed
tweaks
1 parent 8b029b5 commit 3a6d79a

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

idaes/commands/run_flowsheet.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,6 @@
1515
"""
1616

1717
from idaes.core.util.structfs.runner_cli import main
18+
19+
if __name__ == "__main__":
20+
main()

idaes/core/util/structfs/runner_cli.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,6 @@ def main():
5050
except Exception as err:
5151
return error(sys.stderr, "Cannot open output file '{args.output}': {err}", -1)
5252

53-
if args.module is None:
54-
return error(ofile, f"Argument --module is required")
55-
if args.to is None:
56-
return error(ofile, f"Argument --to is required")
57-
5853
module_name = args.module
5954
if module_name.startswith("."):
6055
return error(ofile, "Relative module names not allowed", 1)

0 commit comments

Comments
 (0)