All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] scncopy: Fix minor problems with --usage.
@ 2010-01-12 18:17 Peter Jones
       [not found] ` <1263320238-21124-1-git-send-email-pjones-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Peter Jones @ 2010-01-12 18:17 UTC (permalink / raw)
  To: dwarves-u79uwXL29TY76Z2rM5mHXA; +Cc: acme-H+wXaHxf7aLQT0dZR+AlfA, Peter Jones

- "-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(-)

diff --git a/scncopy.c b/scncopy.c
index 38aaa9a..9acc16d 100644
--- a/scncopy.c
+++ b/scncopy.c
@@ -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];
-- 
1.6.5.2

--
To unsubscribe from this list: send the line "unsubscribe dwarves" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] scncopy: Fix minor problems with --usage.
       [not found] ` <1263320238-21124-1-git-send-email-pjones-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
@ 2010-01-12 18:38   ` Arnaldo Carvalho de Melo
  0 siblings, 0 replies; 2+ messages in thread
From: Arnaldo Carvalho de Melo @ 2010-01-12 18:38 UTC (permalink / raw)
  To: Peter Jones; +Cc: dwarves-u79uwXL29TY76Z2rM5mHXA

Em Tue, Jan 12, 2010 at 01:17:18PM -0500, Peter Jones escreveu:
> - "-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 majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-01-12 18:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-12 18:17 [PATCH] scncopy: Fix minor problems with --usage Peter Jones
     [not found] ` <1263320238-21124-1-git-send-email-pjones-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2010-01-12 18:38   ` Arnaldo Carvalho de Melo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.