diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2015-02-16 13:25:24 -0800 |
---|---|---|
committer | Thiago Macieira <thiago.macieira@intel.com> | 2015-03-26 17:23:34 +0000 |
commit | 23d8daa32e2718c7a33310f912650ecc4753d301 (patch) | |
tree | 119ae3c304cdc47c73a36212cd8007930da78825 /src/qtplugininfo | |
parent | 50677485f777a8f66b949bfc313ddb43bb58aad3 (diff) | |
download | qttools-23d8daa32e2718c7a33310f912650ecc4753d301.tar.gz |
qtplugininfo: Print the plugin name the metadata is from
If there are more than one files passed on the command-line. Like grep.
Change-Id: I1a800c709d3543699131ffff13c37f584d830ff6
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com>
Diffstat (limited to 'src/qtplugininfo')
-rw-r--r-- | src/qtplugininfo/qtplugininfo.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/qtplugininfo/qtplugininfo.cpp b/src/qtplugininfo/qtplugininfo.cpp index e3019c7a9..3cab60eab 100644 --- a/src/qtplugininfo/qtplugininfo.cpp +++ b/src/qtplugininfo/qtplugininfo.cpp @@ -74,6 +74,8 @@ int main(int argc, char** argv) return 1; } const QJsonDocument doc(loader.metaData()); + if (parser.positionalArguments().size() != 1) + std::cout << pluginNativeName.constData() << ": "; std::cout << doc.toJson().constData(); } |