Skip to content

Commit

Permalink
make quiet mode supported on windows (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
krzemin committed Aug 3, 2015
1 parent 5232a81 commit 9569d82
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/qnapicli.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,17 @@

bool QNapiCli::isCliCall(int argc, char **argv)
{
QString p;

#ifdef Q_OS_WIN
Q_UNUSED(argc)
Q_UNUSED(argv)
for(int i = 1; i < argc; i++)
{
p = argv[i];
if((p == "--quiet") || (p == "-q"))
return true;
}
return false;
#else

QString p;

for(int i = 1; i < argc; i++)
{
p = argv[i];
Expand Down

0 comments on commit 9569d82

Please sign in to comment.