summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-04-23 13:03:36 -0400
committermidipix <writeonce@midipix.org>2016-04-23 14:27:55 -0400
commit10063db4683335c93a7cd8f4fca61de2c370d96b (patch)
tree8ab8bc512fd849ad9334bfab5c80d16d8d61f8a2
parent0c24891cf3ee3795761f5c71f589792b50393e12 (diff)
downloadslibtool-10063db4683335c93a7cd8f4fca61de2c370d96b.tar.bz2
slibtool-10063db4683335c93a7cd8f4fca61de2c370d96b.tar.xz
utility: properly handle --help when it is the only passed argument.
-rw-r--r--src/slibtool.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/slibtool.c b/src/slibtool.c
index 328fc24..179165a 100644
--- a/src/slibtool.c
+++ b/src/slibtool.c
@@ -60,7 +60,10 @@ int slibtool_main(int argc, char ** argv, char ** envp)
char * sargv[5];
/* --version only? */
- if ((argc == 2) && !strcmp(argv[1],"--version")) {
+ if ((argc == 2) && (!strcmp(argv[1],"--version")
+ || !strcmp(argv[1],"--help-all")
+ || !strcmp(argv[1],"--help")
+ || !strcmp(argv[1],"-h"))) {
sargv[0] = argv[0];
sargv[1] = argv[1];
sargv[2] = "--mode=compile";