Changeset 2418 in Sophya for trunk/SophyaPI/ProgPI/piapp.cc
- Timestamp:
- Jul 21, 2003, 11:06:48 PM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaPI/ProgPI/piapp.cc
r2322 r2418 63 63 */ 64 64 65 voidUsage(bool fgerr)65 int Usage(bool fgerr) 66 66 { 67 67 if (fgerr) { 68 68 cout << " piapp : Argument Error ! piapp -h for Usage" << endl; 69 exit(1);69 return 1; 70 70 } 71 71 else { … … 81 81 << " -exec file [args] : Execute command file \n" 82 82 << endl; 83 exit(0);83 return 0; 84 84 } 85 85 } … … 96 96 InitTim(); 97 97 98 99 if ( (narg > 1) && (strcmp(arg[1],"-h") == 0) )Usage(false);98 if(narg>1) 99 for(int jh=1;jh<narg;jh++) if(strcmp(arg[jh],"-h") == 0) return Usage(false); 100 100 101 101 ofa = 1; … … 117 117 else if (strcmp(arg[ka],"-help2tex") == 0) { fgtexh=true; fgred=false; } 118 118 else if (strcmp(arg[ka],"-tmpdir") == 0) { 119 if (ka == narg-1) Usage(true);119 if (ka == narg-1) return Usage(true); 120 120 fgtmp = true; ka++; 121 121 tmpdir = arg[ka];
Note:
See TracChangeset
for help on using the changeset viewer.