[DRE-commits] [gem2deb] 01/03: bin/*: better usage message on command line
Antonio Terceiro
terceiro at moszumanska.debian.org
Wed Nov 26 14:28:08 UTC 2014
This is an automated email from the git hooks/post-receive script.
terceiro pushed a commit to branch master
in repository gem2deb.
commit c5757e55e88a92164a4ef34c11b75c4b4f8b7806
Author: Antonio Terceiro <terceiro at debian.org>
Date: Wed Oct 15 15:55:46 2014 -0300
bin/*: better usage message on command line
---
bin/dh-make-ruby | 3 +++
bin/dh_ruby | 3 +++
bin/gem2deb | 3 +++
bin/gem2tgz | 3 +++
debian/changelog | 1 +
5 files changed, 13 insertions(+)
diff --git a/bin/dh-make-ruby b/bin/dh-make-ruby
index 2f3eaa0..2ccf8e5 100755
--- a/bin/dh-make-ruby
+++ b/bin/dh-make-ruby
@@ -22,6 +22,9 @@ require 'optparse'
options = {}
optparse = OptionParser.new do |opts|
+ opts.banner = "Usage: dh-make-ruby [OPTIONS] TARBALL|DIRECTORY"
+ opts.separator 'Options:'
+
opts.on('-h', '--help', 'show help') do
puts opts
exit
diff --git a/bin/dh_ruby b/bin/dh_ruby
index 484fee8..900c748 100755
--- a/bin/dh_ruby
+++ b/bin/dh_ruby
@@ -24,6 +24,9 @@ include Gem2Deb
engine = Gem2Deb::DhRuby.new
optparse = OptionParser.new do |opts|
+ opts.banner = "Usage: dh_ruby [OPTIONS]"
+ opts.separator "Options:"
+
opts.on('-h', '--help', 'show help') do
puts opts
exit
diff --git a/bin/gem2deb b/bin/gem2deb
index 685f0b5..e83644d 100755
--- a/bin/gem2deb
+++ b/bin/gem2deb
@@ -27,6 +27,9 @@ $check_build_deps = true
dh_make_ruby_options = {}
optparse = OptionParser.new do |opts|
+ opts.banner = "Usage: gem2deb [OPTIONS] GEMNAME|GEMFILE"
+ opts.separator "Options:"
+
opts.on('-h', '--help', 'show gem2deb help') do
puts opts
exit
diff --git a/bin/gem2tgz b/bin/gem2tgz
index bc49660..2a18828 100755
--- a/bin/gem2tgz
+++ b/bin/gem2tgz
@@ -20,6 +20,9 @@ require 'gem2deb/gem2tgz'
require 'optparse'
optparse = OptionParser.new do |opts|
+ opts.banner = "Usage: gem2tgz [OPTIONS] GEMNAME|GEMFILE [TARBALL]"
+ opts.separator "Options:"
+
opts.on('-h', '--help', 'show help') do
puts opts
exit
diff --git a/debian/changelog b/debian/changelog
index 442622e..a49d9d2 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -5,6 +5,7 @@ gem2deb (0.11) UNRELEASED; urgency=medium
then debian/tests/control *must* exist).
- autopkgtest-pkg-ruby will be handled by autopkgtest and the implicit
test control data that uses gem2deb-test-runner will be used.
+ * improved "usage: " banner in several of the provided programs
-- Antonio Terceiro <terceiro at debian.org> Mon, 15 Sep 2014 10:28:55 -0300
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/gem2deb.git
More information about the Pkg-ruby-extras-commits
mailing list