mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-11 09:03:40 +02:00
2021-10-02 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug in rdlogmanager(1) that broke the '--show-styles' and '-style <name>' command-line switches. Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
@@ -292,6 +292,16 @@ int main(int argc,char *argv[])
|
||||
RDCmdSwitch *cmd=
|
||||
new RDCmdSwitch(argc,argv,"rdlogmanager",RDLOGMANAGER_USAGE);
|
||||
for(unsigned i=0;i<cmd->keys();i++) {
|
||||
if((cmd->key(i)=="-display")||(cmd->key(i)=="-style")) {
|
||||
// Pass through to QApplication
|
||||
if(i>=(cmd->keys()-1)) {
|
||||
fprintf(stderr,"rdlogmanager: missing argument to \"%s\"\n",
|
||||
cmd->key(i).toUtf8().constData());
|
||||
exit(RDApplication::ExitInvalidOption);
|
||||
}
|
||||
i++;
|
||||
cmd->setProcessed(i,true);
|
||||
}
|
||||
if (cmd->key(i)=="-P") {
|
||||
cmd_protect_existing = true;
|
||||
cmd->setProcessed(i,true);
|
||||
|
Reference in New Issue
Block a user