Skip to contentSkip to conversation

scncopy: make "--help" a valid argument...

PATCH New Peter Jones 1 participant 1 message Jan 12, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 scncopy: make "--help" a valid argument...

---
 scncopy.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
scncopy.c +3 -1
index 067662c..1c76742 100644
@@ -65,7 +65,9 @@ int main(int argc, char *argv[])
 			n++;
 			outfile = argv[n];
 			continue;
-		} else if (!strcmp(argv[n], "-?") || !strcmp(argv[n],"--usage")) {
+		} else if (!strcmp(argv[n], "-?") ||
+				!strcmp(argv[n], "--help") ||
+				!strcmp(argv[n], "--usage")) {
 			printf("usage: pjoc [-s section0 [[-s section1] ... -s sectionN] | -a ] -o outfile infile\n");
 			return 0;
 		} else if (n == argc-1) {
Signature · 6 lines
1.6.5.2

--
To unsubscribe from this list: send the line "unsubscribe dwarves" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html