[farsight2/master] Make simple-call usage clearer

Olivier Crête olivier.crete at collabora.co.uk
Tue Dec 23 15:24:24 PST 2008


---
 tests/commandline/simple-call.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/tests/commandline/simple-call.c b/tests/commandline/simple-call.c
index edb747b..bed8cf0 100644
--- a/tests/commandline/simple-call.c
+++ b/tests/commandline/simple-call.c
@@ -131,14 +131,16 @@ int main (int argc, char **argv)
     port = atoi (argv[2]);
     if (!port)
     {
-      g_print ("Usage: %s [ip] [port]\n", argv[0]);
+      g_print ("Usage as client : %s [ip] [port]\n", argv[0]);
+      g_print ("Usage as server : %s\n", argv[0]);
       return 1;
     }
     ip = argv[1];
   }
   else
   {
-    g_print ("Usage: %s [ip] [port]\n", argv[0]);
+    g_print ("Usage as client : %s [ip] [port]\n", argv[0]);
+    g_print ("Usage as server : %s\n", argv[0]);
     return 1;
   }
 
-- 
1.5.6.5




More information about the farsight-commits mailing list