[Libreoffice-commits] online.git: loolwsd/LOOLStress.cpp
Ashod Nakashian
ashod.nakashian at collabora.co.uk
Mon Aug 22 04:24:02 UTC 2016
loolwsd/LOOLStress.cpp | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
New commits:
commit 60e7c0b50ed986b2e1d6c6d93071ce3eff0c7166
Author: Ashod Nakashian <ashod.nakashian at collabora.co.uk>
Date: Wed Aug 17 19:52:13 2016 -0400
loolstress: usage
Change-Id: I04df4341dbe669b35c0c5cad6e17cd08a8faa05c
Reviewed-on: https://gerrit.libreoffice.org/28287
Reviewed-by: Ashod Nakashian <ashnakash at gmail.com>
Tested-by: Ashod Nakashian <ashnakash at gmail.com>
diff --git a/loolwsd/LOOLStress.cpp b/loolwsd/LOOLStress.cpp
index 5d5e374..b6b6f8a 100644
--- a/loolwsd/LOOLStress.cpp
+++ b/loolwsd/LOOLStress.cpp
@@ -318,7 +318,13 @@ int Stress::main(const std::vector<std::string>& args)
{
std::vector<std::unique_ptr<Thread>> clients(_numClients * args.size());
- std::cout << "Args: " << args.size() << std::endl;
+ if (args.size() == 0)
+ {
+ std::cerr << "Usage: loolstress <tracefile> " << std::endl;
+ std::cerr << " Trace files may be plain text or gzipped (with .gz extension)." << std::endl;
+ std::cerr << " --help for full arguments list." << std::endl;
+ return Application::EXIT_NOINPUT;
+ }
unsigned index = 0;
for (unsigned i = 0; i < args.size(); ++i)
More information about the Libreoffice-commits
mailing list