![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Parsing argv arguments Topic Summary: Getting command line arguments Created On: 24-Jan-2007 15:57 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
All,
When DOORS crashes, the DXL window that is displayed shows the command line arguments from the argv variable. You'll see the variable listed as argv[1] = value argv[2] = value argv[3] = value etc. I'd like to look at these values via DXL, as I can't always trust registry settings and environment variables. Does anyone know how to do this? Kev ------------------------- Kevin Murphy http://www.baselinesinc.com The Requirements Management Experts |
|
![]() |
|
![]() |
|
If variable 'xxx' is a name of a DOORS variable in the registry, then variable 'DOORSXXX' is the equivalent name if used in the command line switch. Yes, it must be all upper case. Its null if there is no such command line switch currently in use.
Try this string DataLocReg = getenv("data") string DataLocCLS = getenv("DOORSDATA") if (null DataLocCLS or DataLocReg == DataLocCLS) print "Using default data location: '" DataLocReg "'\n" else print "Data loc overridden by Command Line Switch: '" DataLogReg "' '" DataLocCLS "'\n" This function may be useful: string fGetCommnandLineSwitchName(string EnvVarName) { // for the specified Environement Variable recognized by DOORS, // calculate the name of the corresponding variable is used in the command line return("DOORS" upper(EnvVarName)) } // end fGetCommandLineSwitchName() - Louie |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Parsing argv arguments
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.