From: Cornelius Schumacher
---
docs/api/rest_doc | 4 ++++
docs/api/rest_test | 4 ++++
2 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/docs/api/rest_doc b/docs/api/rest_doc
index e8cc336..f380330 100755
--- a/docs/api/rest_doc
+++ b/docs/api/rest_doc
@@ -26,6 +26,8 @@ class Options
opt = OptionParser.new
+ opt.banner = "Usage: rest_doc [options] filename"
+
opt.on( "-h", "--help", "Print this message" ) do
puts opt
exit
@@ -57,9 +59,11 @@ class Options
if ( ARGV.size > 1 )
puts "Too many arguments"
+ puts opt
exit
elsif ( ARGV.size < 1 )
puts "Too few arguments"
+ puts opt
exit
end
diff --git a/docs/api/rest_test b/docs/api/rest_test
index d22d189..6220948 100755
--- a/docs/api/rest_test
+++ b/docs/api/rest_test
@@ -25,6 +25,8 @@ class Options
opt = OptionParser.new
+ opt.banner = "Usage: rest_test [options] filename"
+
opt.on( "-h", "--help", "Print this message" ) do
puts opt
exit
@@ -44,9 +46,11 @@ class Options
if ( ARGV.size > 1 )
puts "Too many arguments"
+ puts opt
exit
elsif ( ARGV.size < 1 )
puts "Too few arguments"
+ puts opt
exit
end
--
1.7.7
--
To unsubscribe, e-mail: obs-commits+unsubscribe@opensuse.org
To contact the owner, e-mail: obs-commits+owner@opensuse.org