Greetings: Full source is at http://az.dedserius.com/main.c I'll reduce this to one problem at a time and see if I can make some progress, that way. With the following code, running with -psecret works, but, --password doesn't. Anyone ran into this? <begin code> struct option long_options[] = { {"password", optional_argument, NULL, "p"}, {"version", no_argument, NULL, "v"}, {0,0,0,0} }; int main(int argc, char *argv[]) { char *password = NULL; /* MySQL password */ const char* usage="Usage: btimeshell [OPTIONS]\n \ -p --password Set password you use for BTime\n \ -v --version Display btimeshell version information and exit\n\n"; <end code> Regards, Van -- ================================================================= Linux rocks!!! http://www.dedserius.com/ ================================================================= --------------------------------------------------------------------- Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail <[EMAIL PROTECTED]> To unsubscribe, e-mail <[EMAIL PROTECTED]> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php