[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: KCmdLineArgs and getOptions
From: Jörg Fröhlich <joerg_froehlich () arcor ! de>
Date: 2002-08-24 12:17:17
[Download RAW message or body]
Hi,
i got some problem with getOption.
I try to get the value of "Port" via getOptions("Port");
but i always get only a "t". Whatever i pass by the cmdline.
What i've done is the following
...
static KCmdLineOptions options[] =
{...
{ "Port", I18N_NOOP("Port"), "10000" }, ...
};
...
if( args->isSet("Port") ) {
QCString str = args->getOption("Port");
...
}
When i start my program with -Port 25000, isSet("Port") is true,
getOptions() returned always "t" instead of 25000 and i don't know
why.
Anyone with a hint or an idea?
cu
Joerg
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic