You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by ra...@locus.apache.org on 2000/06/13 00:07:23 UTC

cvs commit: xml-xerces/c/samples/EnumVal EnumVal.cpp

rahulj      00/06/12 15:07:23

  Modified:    c/samples/EnumVal EnumVal.cpp
  Log:
  Correctly rejects unsupported command line options.
  
  Revision  Changes    Path
  1.9       +4 -1      xml-xerces/c/samples/EnumVal/EnumVal.cpp
  
  Index: EnumVal.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/samples/EnumVal/EnumVal.cpp,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- EnumVal.cpp	2000/05/31 18:50:42	1.8
  +++ EnumVal.cpp	2000/06/12 22:07:22	1.9
  @@ -56,6 +56,9 @@
   
   /*
    * $Log: EnumVal.cpp,v $
  + * Revision 1.9  2000/06/12 22:07:22  rahulj
  + * Correctly rejects unsupported command line options.
  + *
    * Revision 1.8  2000/05/31 18:50:42  rahulj
    * Removed extraneous command line arguments.
    *
  @@ -195,7 +198,7 @@
       }
       
       // We only have one required parameter, which is the file to process
  -    if ((argC == 2) && !strcmp(argV[1], "-?"))
  +    if ((argC == 2) && (*(argV[1]) == '-'))
       {
           usage();
           XMLPlatformUtils::Terminate();