diff options
author | Andre Hartmann <aha_1980@gmx.de> | 2016-10-26 06:07:59 +0200 |
---|---|---|
committer | André Hartmann <aha_1980@gmx.de> | 2016-11-01 20:12:56 +0000 |
commit | 4516f444809af8a9e3fa7cad9353c2332963fafe (patch) | |
tree | 6d4df24dccebc01f5a4c61421a39c21e058c4343 /src/tools | |
parent | 65417004f2dde9290f565b90b5637b448be8e17d (diff) |
canbusutil: Don't show header when printing plugins
Omit the header when the plugins are printed on
explicit request by a command line parameter.
Just showing the available plugins without extra
information makes this output easier to parse e.g.
by shell scripts.
Keep the output for the error case.
Change-Id: I88708f351e360bb5da64fe43f42e0cb5f5391849
Reviewed-by: Rolf Eike Beer <eb@emlix.com>
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'src/tools')
-rw-r--r-- | src/tools/canbusutil/canbusutil.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/canbusutil/canbusutil.cpp b/src/tools/canbusutil/canbusutil.cpp index 72c9283..afd89ef 100644 --- a/src/tools/canbusutil/canbusutil.cpp +++ b/src/tools/canbusutil/canbusutil.cpp @@ -79,7 +79,6 @@ bool CanBusUtil::start(const QString &pluginName, const QString &deviceName, con void CanBusUtil::printPlugins() { const QStringList plugins = m_canBus->plugins(); - m_output << "Plugins: " << endl; for (int i = 0; i < plugins.size(); i++) m_output << plugins.at(i) << endl; } @@ -159,6 +158,7 @@ bool CanBusUtil::connectCanDevice() { if (!m_canBus->plugins().contains(m_pluginName)) { m_output << "Could not find suitable plugin." << endl; + m_output << "Available plugins:" << endl; printPlugins(); return false; } |