a more helpful message on argument failure
This commit is contained in:
parent
deaae09601
commit
72f8f0410a
1 changed files with 11 additions and 4 deletions
|
|
@ -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 <pattern>] [-c <file>] [-L] [-C] [-M] [-S] [-T] [-X <pattern>]\n\n"
|
||||
print "-I <pattern> specify an include pattern\n"
|
||||
print "-c <file> 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 <pattern> specify an exclude pattern\n"
|
||||
exit
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue