mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-11 17:13:47 +02:00
2016-07-22 Fred Gleason <fredg@paravelsystems.com>
* Renamed the '--script' option in rdclilogedit(1) to be '-n' or '--quiet' or '--silent'.
This commit is contained in:
@@ -15389,3 +15389,6 @@
|
||||
* Fixed a bug in 'utils/rdclilogedit/operations.cpp' that caused
|
||||
spurious 'no such service' errors when using the 'setservice'
|
||||
command on new logs.
|
||||
2016-07-22 Fred Gleason <fredg@paravelsystems.com>
|
||||
* Renamed the '--script' option in rdclilogedit(1) to be '-n' or
|
||||
'--quiet' or '--silent'.
|
||||
|
@@ -47,7 +47,7 @@
|
||||
<variablelist remap='TP'>
|
||||
<varlistentry>
|
||||
<term>
|
||||
<option>--script</option>
|
||||
<option>-n</option>, <option>--quiet</option>, <option>--silent</option>
|
||||
</term>
|
||||
<listitem>
|
||||
<para>
|
||||
|
@@ -38,7 +38,7 @@
|
||||
MainObject::MainObject(QObject *parent)
|
||||
:QObject(parent)
|
||||
{
|
||||
edit_script_option=false;
|
||||
edit_quiet_option=false;
|
||||
|
||||
edit_log=NULL;
|
||||
edit_log_event=NULL;
|
||||
@@ -51,8 +51,9 @@ MainObject::MainObject(QObject *parent)
|
||||
RDCmdSwitch *cmd=new RDCmdSwitch(qApp->argc(),qApp->argv(),"rdclilogedit",
|
||||
RDCLILOGEDIT_USAGE);
|
||||
for(int i=0;i<(int)cmd->keys();i++) {
|
||||
if(cmd->key(i)=="--script") {
|
||||
edit_script_option=true;
|
||||
if((cmd->key(i)=="-n")||(cmd->key(i)=="--quiet")||
|
||||
(cmd->key(i)=="--silent")) {
|
||||
edit_quiet_option=true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -131,7 +132,7 @@ void MainObject::userData()
|
||||
}
|
||||
}
|
||||
}
|
||||
if(!edit_script_option) {
|
||||
if(!edit_quiet_option) {
|
||||
printf("\n");
|
||||
}
|
||||
exit(0);
|
||||
@@ -147,7 +148,7 @@ void MainObject::OverwriteError(const QString &cmd) const
|
||||
|
||||
void MainObject::PrintPrompt() const
|
||||
{
|
||||
if(!edit_script_option) {
|
||||
if(!edit_quiet_option) {
|
||||
if(edit_log==NULL) {
|
||||
printf("logedit> ");
|
||||
}
|
||||
|
@@ -74,7 +74,7 @@ class MainObject : public QObject
|
||||
void DispatchCommand(QString cmd);
|
||||
QString ListLine(RDLogEvent *evt,int line) const;
|
||||
void PrintPrompt() const;
|
||||
bool edit_script_option;
|
||||
bool edit_quiet_option;
|
||||
QString edit_accum;
|
||||
bool edit_modified;
|
||||
bool edit_new_log;
|
||||
|
Reference in New Issue
Block a user