Re: getopt required_argument (Was Re: regtool - 1.8 - Core dump)

2005-03-01 Thread Alexander Joerg Herrmann
Well, it's just a matter of adding a check for optarg being NULL and printing an appropriate message (e.g., if (optarg == NULL) { fprintf(stderr, Missing key-value separator\n); usage(); } ). Yup looks easy but I may better patch the DLL to use

Re: regtool - 1.8 - Core dump

2005-02-26 Thread Alexander Joerg Herrmann
Dear Arturus, regtool dosn't dpend on the Cygwin environment as it can also run from the Windows command line without any Cygwin souroundings. What I was mentioning is that rgetool -K causes a core fault and something similar under windows because the argument is broken. I know that the argument

Re: regtool - 1.8 - Core dump

2005-02-26 Thread Alexander Joerg Herrmann
False. regtool is a cygwin app and depends on the cygwin DLL: Was my mistake as I run it within the Cygwin startup bat as E:\aIEngine\CYGWINbin\regtool in order to set all the moutn points on computers without CygWin installed. Alex =

Re: regtool - 1.8 - Core dump

2005-02-26 Thread Alexander Joerg Herrmann
That doesn't change the fact that it's still a Cygwin application, because it's linked against cygwin1.dll. Because you have cygwin1.dll on the system and in the same directory as regtool.exe means it will be found when you run regtool. I got that. I just didn't check. Why aren't you

regtool - 1.8 - Core dump

2005-02-24 Thread Alexander Joerg Herrmann
It dosn't feel like a feature so it must be a Bug for sure :) Don't worry it's easy to reproduce: bash-2.05b$ ./regtool -K Segmentation fault (core dumped) crashes with a core dump insteed of printing the usage information while regtool --key-seperator and regtool --key-seperator= does the right