Diff
Not logged in

Differences From:

File src/main.c part of check-in [22552fb803] - Extend the commit command so that specific files can be committed. There are still some problems with doing this after a merge. by dan on 2007-08-03 15:31:33. [view]

To:

File src/main.c part of check-in [6aff11f03f] - Show an error if unrecognized command-line options appear on the commit command. Also add the (undocumented) "omit-ci-sig" configuration option on the database. Setting omit-ci-sig omits the PGP signature on check-in. by drh on 2007-08-03 23:30:52. [view]

@@ -297,8 +297,22 @@
       break;
     }
   }
   return zReturn;
+}
+
+/*
+** Verify that there are no processed command-line options.  If
+** Any remaining command-line argument begins with "-" print
+** an error message and quit.
+*/
+void verify_all_options(void){
+  int i;
+  for(i=1; i<g.argc; i++){
+    if( g.argv[i][0]=='-' ){
+      fossil_fatal("unrecognized command-line option: %s", g.argv[i]);
+    }
+  }
 }
 
 /*
 ** Print a list of words in multiple columns.