Skip to contentSkip to conversation

scncopy: Fix minor problems with --usage.

PATCH Applied Peter Jones 2 participants 2 messages Jan 12, 2010 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 scncopy: Fix minor problems with --usage.

- "-s section 0" doesn't really read the same as "-s section0"
- "--help" is something we should allow
- usage should say "scncopy" not "pjoc"

---
 scncopy.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
scncopy.c +4 -2
index 38aaa9a..9acc16d 100644
@@ -65,8 +65,10 @@ int main(int argc, char *argv[])
 			n++;
 			outfile = argv[n];
 			continue;
-		} else if (!strcmp(argv[n], "-?") || !strcmp(argv[n],"--usage")) {
-			printf("usage: pjoc -s section 0 [[-s section1] ... -s sectionN] -o outfile infile\n");
+		} else if (!strcmp(argv[n], "-?") ||
+				!strcmp(argv[n], "--help") ||
+				!strcmp(argv[n], "--usage")) {
+			printf("usage: scncopy [-s section0 [[-s section1] ... -s sectionN] | -a ] -o outfile infile\n");
 			return 0;
 		} else if (n == argc-1) {
 			infile = argv[n];
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

A message that is not in the archive (sent off-list or not yet received): 1263320238-21124-1-git-send-email-pjones-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org

#2 lore raw

Em Tue, Jan 12, 2010 at 01:17:18PM -0500, Peter Jones escreveu:

Quoted 3 lines

- "-s section 0" doesn't really read the same as "-s section0"
- "--help" is something we should allow
- usage should say "scncopy" not "pjoc"

Please add a s-o-b line in the next patches.

Thanks, applied and pushed out!

- Arnaldo
--
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