# requirez(commandLine.awk) BEGIN { Who = "Tim Menzies"; What = "silap"; When = "2006"; How = "cd:e:hn:p:s:x:r:R:V:w:"; Why = "learn patterns from NASA IV&V project data"; } function usage() { about(Who,What,When,Why); prints("Usage: "What" [FLAGS] [FILE]"," ", "FILE is a csv of prior projects (and is not needed for the '-r' flag)"," ", " -c show copyright", " -d CHAR field seperator; default=["FS"]", " -e FILE for all projects in FILE, computer EP,CON", " -h show help", " -n NUM repeat NUM times; default=["N"]", " -p NUM print a progress statement, every NUM steps of the simulation;", " (and if NUM is 0, disable printing); default ["Pause"]", " -r FILE1 run a simulation from the distribution into FILE1", " (ignores any trailing FILE names on the command line)", " -V CHAR verbose mode: show pdf using CHAR", " -w FILE1 writes the distribution of FILE into FILE1, then quits", " -R FILE1 writes the rsk distribution (error and consquence) to FILE1", " -s NUM set random seed; default=["Seed"]", " -x NUM run demo NUM"," ", "This tool was developed at West Virginia University under a contract with the National", "Aeronautics and Space Administration. Reference herein to any specific commercial", "commercial product, process, or service by trade name, trademark, manufacturer, or otherwise,", "does not constitute or imply its endorsement by the United States Government.") } function defaults() { inits(How,"-s 1 -d , -n 250 -p 0 -x 999"); } function set(x,y) { if (x == "c") {copyleft(); exit }; if (x == "d") {return OFS=FS = y }; if (x == "h") {usage(); exit }; if (x == "p") {return Pause = y }; if (x == "n") {return N = y }; if (x == "R") {return Risk = y; } if (x == "r") {simulateFromFile(y); exit; }; if (x == "e") {emulate(y); exit; }; if (x == "w") {return WriteTo=y }; if (x == "V") {return Verbose = y }; if (x == "x") {return Demo= y }; if (x == "s") {y ? srand(y) : srand(); return Seed=y; } bad(x "? usage: " What " " How); exit; }