Browse Source

Merge branch 'master' of gitea.larke.org:klarke/libcm

master
kevin 4 years ago
parent
commit
dd8fc144fb
1 changed files with 5 additions and 2 deletions
  1. 5
    2
      src/cmPgmOpts.c

+ 5
- 2
src/cmPgmOpts.c View File

722
     cmPgmOptInstallBool(h, kVersionPoId,   'v', "version", 0, false, NULL,0,"Print version information." );
722
     cmPgmOptInstallBool(h, kVersionPoId,   'v', "version", 0, false, NULL,0,"Print version information." );
723
 
723
 
724
   if( _cmPgmOptNumIdToOptRecd(p,kPrintParmsPoId) == NULL )
724
   if( _cmPgmOptNumIdToOptRecd(p,kPrintParmsPoId) == NULL )
725
-    cmPgmOptInstallBool(h, kPrintParmsPoId,'p', "parms",   0, false, NULL,0,"Print the arguments."); 
725
+    cmPgmOptInstallBool(h, kPrintParmsPoId,'p', "parms",   0, false, NULL,0,"Print the arguments.");
726
+
727
+  if((rc = cmErrLastRC(&p->err)) != kOkPoRC )    
728
+    return rc;
726
 
729
 
727
   
730
   
728
   while(i<argCnt)
731
   while(i<argCnt)
1247
     if( _cmPoOptUsesValue(r) ) 
1250
     if( _cmPoOptUsesValue(r) ) 
1248
       valueTypeLabel = _cmPoTypeFlagToLabel(r->sflags & kTypeMaskPoFl,r->cflags);
1251
       valueTypeLabel = _cmPoTypeFlagToLabel(r->sflags & kTypeMaskPoFl,r->cflags);
1249
 
1252
 
1250
-    if( cmIsNotFlag(r->sflags,kEnumPoFl)  && cmIsFlag(r->sflags,kReqPoFl) )
1253
+    if( cmIsNotFlag(r->sflags,kEnumPoFl)  && cmIsFlag(r->cflags,kReqPoFl) )
1251
       reqLabel = reqStr;
1254
       reqLabel = reqStr;
1252
 
1255
 
1253
     if( mstr != NULL )
1256
     if( mstr != NULL )

Loading…
Cancel
Save