X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2Fcliparser.cpp;h=059ef35011bc7ab019b63fffc789c3db68f7c2be;hp=598fc484cb8128b90872eccf5c2bdaf7bbdb21a3;hb=bd6311ec1d07e4daf082b5f752ef6b46d7808430;hpb=eedb5d1c659cdc4390915654b2a9f08ae51271fa diff --git a/src/common/cliparser.cpp b/src/common/cliparser.cpp index 598fc484..059ef350 100644 --- a/src/common/cliparser.cpp +++ b/src/common/cliparser.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-08 by the Quassel IRC Team * + * Copyright (C) 2005-09 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -24,6 +24,8 @@ #include #include +#include + CliParser::CliParser() : AbstractCliParser() { } @@ -148,7 +150,7 @@ bool CliParser::init(const QStringList &args) { } void CliParser::usage() { - qWarning() << "Usage:" << QFileInfo(argsRaw.at(0)).completeBaseName() << "[arguments]"; + std::cout << "Usage: " << qPrintable(QFileInfo(argsRaw.at(0)).completeBaseName()) << " [arguments]" << std::endl; // get size of longName field QStringList keys = argsHash.keys(); @@ -184,7 +186,7 @@ void CliParser::usage() { if(arg.value().type == CliParserArg::CliArgOption && !arg.value().def.isNull()) { output.append(". Default is: ").append(arg.value().def); } - qWarning() << qPrintable(output); + std::cout << qPrintable(output) << std::endl; } }