Skip to content
This repository has been archived by the owner on Oct 10, 2019. It is now read-only.

Commit

Permalink
Added commandline option -q to enable quiet startup (patch by Isaac G…
Browse files Browse the repository at this point in the history
…ood)
  • Loading branch information
akrennmair committed Jul 13, 2010
1 parent 921ebb0 commit de6ef19
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ Changes for newsbeuter:
2.4: 2.4:
Added support for query feeds in combination with Google Reader support. Added support for query feeds in combination with Google Reader support.
Added ability to configure proxy authentication method. Added ability to configure proxy authentication method.
Added commandline option -q to enable quiet startup (patch by Isaac Good)


2.3 (2010-06-24): 2.3 (2010-06-24):
Fixed HTML rendering of bold and underline text when light background is configured. Fixed HTML rendering of bold and underline text when light background is configured.
Expand Down
6 changes: 5 additions & 1 deletion src/controller.cpp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ void controller::run(int argc, char * argv[]) {
bool execute_cmds = false; bool execute_cmds = false;


do { do {
if((c = ::getopt(argc,argv,"i:erhu:c:C:d:l:vVoxXI:E:"))<0) if((c = ::getopt(argc,argv,"i:erhqu:c:C:d:l:vVoxXI:E:"))<0)
continue; continue;
switch (c) { switch (c) {
case ':': /* fall-through */ case ':': /* fall-through */
Expand Down Expand Up @@ -189,6 +189,9 @@ void controller::run(int argc, char * argv[]) {
execute_cmds = true; execute_cmds = true;
silent = true; silent = true;
break; break;
case 'q':
silent = true;
break;
case 'd': // this is an undocumented debug commandline option! case 'd': // this is an undocumented debug commandline option!
GetLogger().set_logfile(optarg); GetLogger().set_logfile(optarg);
break; break;
Expand Down Expand Up @@ -833,6 +836,7 @@ void controller::usage(char * argv0) {
{ 'X', "", _("clean up cache thoroughly") }, { 'X', "", _("clean up cache thoroughly") },
{ 'x', _("<command>..."), _("execute list of commands") }, { 'x', _("<command>..."), _("execute list of commands") },
{ 'o', "", _("activate offline mode (only applies to bloglines synchronization mode)") }, { 'o', "", _("activate offline mode (only applies to bloglines synchronization mode)") },
{ 'q', "", _("quiet startup") },
{ 'v', "", _("get version information") }, { 'v', "", _("get version information") },
{ 'l', _("<loglevel>"), _("write a log with a certain loglevel (valid values: 1 to 6)") }, { 'l', _("<loglevel>"), _("write a log with a certain loglevel (valid values: 1 to 6)") },
{ 'd', _("<logfile>"), _("use <logfile> as output log file") }, { 'd', _("<logfile>"), _("use <logfile> as output log file") },
Expand Down

0 comments on commit de6ef19

Please sign in to comment.