ossp-pkg/rc/rc_config.c 1.14 -> 1.15
--- rc_config.c 2002/04/24 16:47:07 1.14
+++ rc_config.c 2002/04/25 09:51:29 1.15
@@ -255,6 +255,29 @@
return(RC_THROW(RC_OK));
}
+/************************************************
+* configVerify(void) *
+* Verify config options help, usage, or version *
+************************************************/
+rc_return_t configVerify(void)
+{
+ ex_t Except;
+
+ ex_try { /* Basic checks of version, usage, and help options */
+ if (configGetval(RC_VER_VAL))
+ fprintf(stdout, "OSSP rc %s\n", RC_VERSION);
+ if (configGetval(RC_USE_VAL))
+ clioptPrintusage();
+ if (configGetval(RC_HLP_VAL))
+ clioptPrintusage(); /* FIXME Replace with real help FIXME */
+ }
+ ex_catch(Except) {
+ rethrow;
+ }
+
+ return(RC_THROW(RC_OK));
+}
+
/***************************************
* configDelete(void) *
* Destruct a configuration *
|
|