Author: mcpierce
Date: Thu Oct 25 17:16:49 2012
New Revision: 1402223

URL: http://svn.apache.org/viewvc?rev=1402223&view=rev
Log:
NO-JIRA: Removes the path from the usage filename displayed for proton.

Modified:
    qpid/proton/trunk/proton-c/src/proton.c

Modified: qpid/proton/trunk/proton-c/src/proton.c
URL: 
http://svn.apache.org/viewvc/qpid/proton/trunk/proton-c/src/proton.c?rev=1402223&r1=1402222&r2=1402223&view=diff
==============================================================================
--- qpid/proton/trunk/proton-c/src/proton.c (original)
+++ qpid/proton/trunk/proton-c/src/proton.c Thu Oct 25 17:16:49 2012
@@ -27,6 +27,7 @@
 #include <proton/message.h>
 #include <proton/util.h>
 #include <unistd.h>
+#include <libgen.h>
 #include "util.h"
 #include "pn_config.h"
 #include <proton/codec.h>
@@ -426,7 +427,7 @@ int main(int argc, char **argv)
       buffer(argc, argv);
       exit(EXIT_SUCCESS);
     case 'h':
-      printf("Usage: %s [-h] [-c [user[:password]@]host[:port]] [-a <address>] 
[-m <sasl-mech>]\n", argv[0]);
+      printf("Usage: %s [-h] [-c [user[:password]@]host[:port]] [-a <address>] 
[-m <sasl-mech>]\n", basename(argv[0]));
       printf("\n");
       printf("    -c    The connect url.\n");
       printf("    -a    The AMQP address.\n");



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to