From 72f8f0410a3a016950069d1b41c3a6d08f9ad1f0 Mon Sep 17 00:00:00 2001 From: Ward Wouts Date: Tue, 9 Jul 2002 12:35:45 +0000 Subject: [PATCH] a more helpful message on argument failure --- trunk/ripnews/ripnews.rb | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/trunk/ripnews/ripnews.rb b/trunk/ripnews/ripnews.rb index 8d3e234..6513a50 100755 --- a/trunk/ripnews/ripnews.rb +++ b/trunk/ripnews/ripnews.rb @@ -63,8 +63,7 @@ def parse_options(options) [ "-M", "--multipart", GetoptLong::NO_ARGUMENT ], [ "-S", "--singlepart", GetoptLong::NO_ARGUMENT ], [ "-T", "--test", GetoptLong::NO_ARGUMENT ], - [ "-X", "--exclude", GetoptLong::REQUIRED_ARGUMENT ], - [ "-g", "--greedy", GetoptLong::NO_ARGUMENT ] + [ "-X", "--exclude", GetoptLong::REQUIRED_ARGUMENT ] ) opts.quiet=true @@ -80,8 +79,16 @@ def parse_options(options) end def usage - print "\nUsage:\n" - print "blabla hier nog iets verzinnen\n" + print "\nUsage:\n\n" + print "ripnews.rb [-I ] [-c ] [-L] [-C] [-M] [-S] [-T] [-X ]\n\n" + print "-I specify an include pattern\n" + print "-c specify an alternate configfile\n" + print "-L use subject as filename\n" + print "-C use combined filenames\n" + print "-M get multipart articles\n" + print "-S get singlepart articles\n" + print "-T test mode, don't update newsrc file\n" + print "-X specify an exclude pattern\n" exit end