mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2026-01-12 07:35:55 +01:00
Change '--verbose' command switch to '--verbose'
This commit is contained in:
@@ -45,6 +45,19 @@
|
|||||||
|
|
||||||
<refsect1 id='options'><title>Options</title>
|
<refsect1 id='options'><title>Options</title>
|
||||||
<variablelist remap='TP'>
|
<variablelist remap='TP'>
|
||||||
|
<varlistentry>
|
||||||
|
<term>
|
||||||
|
<option>--add-schedcode=</option><replaceable>schedcode</replaceable>
|
||||||
|
</term>
|
||||||
|
<listitem>
|
||||||
|
<para>
|
||||||
|
Add scheduler code <replaceable>schedcode</replaceable> to
|
||||||
|
<replaceable>cart</replaceable>.
|
||||||
|
Default action is to leave the scheduler codes unaltered.
|
||||||
|
</para>
|
||||||
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term>
|
<term>
|
||||||
<option>--agency=</option><replaceable>agency</replaceable>
|
<option>--agency=</option><replaceable>agency</replaceable>
|
||||||
@@ -149,6 +162,19 @@
|
|||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
<term>
|
||||||
|
<option>--rem-schedcode=</option><replaceable>schedcode</replaceable>
|
||||||
|
</term>
|
||||||
|
<listitem>
|
||||||
|
<para>
|
||||||
|
Remove scheduler code <replaceable>schedcode</replaceable> from
|
||||||
|
<replaceable>cart</replaceable>.
|
||||||
|
Default action is to leave the scheduler codes unaltered.
|
||||||
|
</para>
|
||||||
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term>
|
<term>
|
||||||
<option>--songid=</option><replaceable>songid</replaceable>
|
<option>--songid=</option><replaceable>songid</replaceable>
|
||||||
@@ -190,37 +216,11 @@
|
|||||||
|
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term>
|
<term>
|
||||||
<option>--add-schedcode=</option><replaceable>schedcode</replaceable>
|
<option>--verbose</option>
|
||||||
</term>
|
</term>
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>
|
<para>
|
||||||
Add scheduler code <replaceable>schedcode</replaceable> to
|
Print messages to STDOUT describing progress.
|
||||||
<replaceable>cart</replaceable>.
|
|
||||||
Default action is to leave the scheduler codes unaltered.
|
|
||||||
</para>
|
|
||||||
</listitem>
|
|
||||||
</varlistentry>
|
|
||||||
|
|
||||||
<varlistentry>
|
|
||||||
<term>
|
|
||||||
<option>--rem-schedcode=</option><replaceable>schedcode</replaceable>
|
|
||||||
</term>
|
|
||||||
<listitem>
|
|
||||||
<para>
|
|
||||||
Remove scheduler code <replaceable>schedcode</replaceable> from
|
|
||||||
<replaceable>cart</replaceable>.
|
|
||||||
Default action is to leave the scheduler codes unaltered.
|
|
||||||
</para>
|
|
||||||
</listitem>
|
|
||||||
</varlistentry>
|
|
||||||
|
|
||||||
<varlistentry>
|
|
||||||
<term>
|
|
||||||
<option>--quiet</option>
|
|
||||||
</term>
|
|
||||||
<listitem>
|
|
||||||
<para>
|
|
||||||
Disable printing of messages to STDOUT describing progress.
|
|
||||||
</para>
|
</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ MainObject::MainObject(QObject *parent)
|
|||||||
{
|
{
|
||||||
QString err_msg;
|
QString err_msg;
|
||||||
|
|
||||||
quiet=false;
|
verbose=false;
|
||||||
cartnum=0;
|
cartnum=0;
|
||||||
year=0;
|
year=0;
|
||||||
bpm=0;
|
bpm=0;
|
||||||
@@ -119,8 +119,8 @@ MainObject::MainObject(QObject *parent)
|
|||||||
rem_schedcode=rda->cmdSwitch()->value(i);
|
rem_schedcode=rda->cmdSwitch()->value(i);
|
||||||
rda->cmdSwitch()->setProcessed(i,true);
|
rda->cmdSwitch()->setProcessed(i,true);
|
||||||
}
|
}
|
||||||
if(rda->cmdSwitch()->key(i)=="--quiet") {
|
if(rda->cmdSwitch()->key(i)=="--verbose") {
|
||||||
quiet=true;
|
verbose=true;
|
||||||
rda->cmdSwitch()->setProcessed(i,true);
|
rda->cmdSwitch()->setProcessed(i,true);
|
||||||
}
|
}
|
||||||
if(!rda->cmdSwitch()->processed(i)) {
|
if(!rda->cmdSwitch()->processed(i)) {
|
||||||
@@ -301,7 +301,7 @@ void MainObject::SendNotification(RDNotification::Action action,unsigned cartnum
|
|||||||
|
|
||||||
void MainObject::Print(const QString &msg)
|
void MainObject::Print(const QString &msg)
|
||||||
{
|
{
|
||||||
if(!quiet) {
|
if(verbose) {
|
||||||
printf("%s\n",(const char *)msg);
|
printf("%s\n",(const char *)msg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -32,6 +32,7 @@
|
|||||||
#include "rdnotification.h"
|
#include "rdnotification.h"
|
||||||
|
|
||||||
#define RDMETADATA_USAGE "--cart-number=<cart number> [options]\n\nThe following options are recognized:\n\n\
|
#define RDMETADATA_USAGE "--cart-number=<cart number> [options]\n\nThe following options are recognized:\n\n\
|
||||||
|
--add_schedcode=<schedcode>\n\
|
||||||
--agency=<agency>\n\
|
--agency=<agency>\n\
|
||||||
--album=<album>\n\
|
--album=<album>\n\
|
||||||
--artist=<artist>\n\
|
--artist=<artist>\n\
|
||||||
@@ -40,12 +41,11 @@
|
|||||||
--conductor=<conductor>\n\
|
--conductor=<conductor>\n\
|
||||||
--label=<label>\n\
|
--label=<label>\n\
|
||||||
--publisher=<publisher>\n\
|
--publisher=<publisher>\n\
|
||||||
|
--rem-schedcode=<schedcode>\n\
|
||||||
--songid=<songid>\n\
|
--songid=<songid>\n\
|
||||||
--title=<title>\n\
|
--title=<title>\n\
|
||||||
--year=<year>\n\
|
--year=<year>\n\
|
||||||
--add_schedcode=<schedcode>\n\
|
--verbose\n\
|
||||||
--rem-schedcode=<schedcode>\n\
|
|
||||||
--quiet\n\
|
|
||||||
\n"
|
\n"
|
||||||
|
|
||||||
class MainObject : public QObject
|
class MainObject : public QObject
|
||||||
@@ -61,7 +61,7 @@ class MainObject : public QObject
|
|||||||
void updateMetadata();
|
void updateMetadata();
|
||||||
void SendNotification(RDNotification::Action action,unsigned cartnum);
|
void SendNotification(RDNotification::Action action,unsigned cartnum);
|
||||||
void Print(const QString &msg);
|
void Print(const QString &msg);
|
||||||
bool quiet;
|
bool verbose;
|
||||||
unsigned cartnum;
|
unsigned cartnum;
|
||||||
QString cartstring;
|
QString cartstring;
|
||||||
QString artist;
|
QString artist;
|
||||||
|
|||||||
Reference in New Issue
Block a user