Skip to content

Commit b6fb4aa

Browse files
author
Alexander Ororbia
committed
tweaked ngcsimlib to pass on unknown args
1 parent b4bdc19 commit b6fb4aa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ngcsimlib/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ def preload():
1717
parser = argparse.ArgumentParser(description='Build and run a model using ngclearn')
1818
parser.add_argument("--modules", type=str, help='location of modules.json file')
1919

20-
args = parser.parse_args()
20+
## ngc-sim-lib only cares about --modules argument
21+
args, unknown = parser.parse_known_args() #args = parser.parse_args()
2122
try:
2223
module_path = args.modules
2324
except:

0 commit comments

Comments
 (0)