Did you give a try to headless mode of DS to build applications? This would keep on updating the generated.c file with this information.
Otherwise, no such command line switch in DS.
But you can look at the /features/com.swi.devstudio_XXX folder. XXX will be the DS version.
that all I need, thank you very much.
I have build in headless mode, everything is OK, but the DS version is NULL, that why I need to get DS version then update generated.c before compile in headless mode
const char mos_headerSEList = "Developer Studio\0" "null\0"
"Open AT OS Package\0" "6.53.0.A1.201408111603\0"
"Firmware Package\0" "7.53.0.A1.201408141758\0"