loolwsd/LOOLStress.cpp |    8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

New commits:
commit 60e7c0b50ed986b2e1d6c6d93071ce3eff0c7166
Author: Ashod Nakashian <ashod.nakash...@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 <ashnak...@gmail.com>
    Tested-by: Ashod Nakashian <ashnak...@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)
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to