From: Rafał Długołęcki Date: Wed, 10 Jul 2013 16:02:26 +0000 (+0200) Subject: Added stub for future extension. X-Git-Url: https://git.dlugolecki.net.pl/?a=commitdiff_plain;h=refs%2Fheads%2Fvlp-16;p=vlp.git Added stub for future extension. --- diff --git a/src/kernel/kernel.cpp b/src/kernel/kernel.cpp index 3126480..baf629e 100644 --- a/src/kernel/kernel.cpp +++ b/src/kernel/kernel.cpp @@ -72,6 +72,7 @@ #include #include +#include #define GPATH "loggr" #define IPATH "logi" @@ -1354,8 +1355,26 @@ void QKernel::Info() #include "kernel.moc" +int show_help = 0; + +static struct option long_options[] = +{ + {"help", no_argument, &show_help, 1}, + {"node_number", required_argument, 0, 'n'}, + {"type", required_argument, 0, 't'}, + {"homedir", required_argument, 0, 'd'}, + {"progdir", required_argument, 0, 'p'}, + {"host", required_argument, 0, 'h'}, + {0, 0, 0, 0} +}; + int main( int argc, char **argv ) { +// int c; +//while() { +//c = getopt_long (argc, argv, "n::t::d::p::h:", long_options, &option_index); +//switch(c) {} +//} int i; for(i=0;i<5;i++) strcpy(myargs[i],""); for(i=1;i