ghorwin / FMICodeGenerator

A Code Generator that creates native C/C++ code to build Functional Mock-Up Units (FMU) with support for FMI version 2.0 (rollback)
BSD 3-Clause "New" or "Revised" License
51 stars 25 forks source link

generate.sh script does not work with spaces in description #15

Closed ghorwin closed 5 years ago

ghorwin commented 5 years ago

When running

> generate.sh MyFMU --description "My FMU with spaces"

you get the error message:

usage: main.py [-h] [--description DESCRIPTION] modelName
main.py: error: unrecognized arguments: FMU with spaces

When running the Python script directly

> ../scripts/main.py MyFMU --description "My FMU with spaces"

it works.

Fix needed for passing quoted arguments to a shell script on to a python script.

ghorwin commented 5 years ago

Not necessary to fix once GUI is in place. Either:

  1. use GUI and wizard to configure FMU and generate it, or
  2. use Python-API to configure FMU and generate it.

No need for shell script anylonger.