From: Anthony Martinez <pi+sup@pihost.us>
To: sup-devel@rubyforge.org
Subject: [sup-devel] [PATCH] fix up options for sup-sync-back, tweak-labels
Date: Tue, 5 Jan 2010 10:20:24 -0700 [thread overview]
Message-ID: <1262712024-25264-1-git-send-email-pi+sup@pihost.us> (raw)
These two violate the convention of the other scripts inside bin/ by
using a local variable for their Trollop results.
---
bin/sup-sync-back | 2 +-
bin/sup-tweak-labels | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/bin/sup-sync-back b/bin/sup-sync-back
index 19e6230..40c1e1c 100755
--- a/bin/sup-sync-back
+++ b/bin/sup-sync-back
@@ -66,7 +66,7 @@ EOS
end
Redwood::start
-index = Redwood::Index.init $opts[:index]
+index = Redwood::Index.init opts[:index]
index.lock_interactively or exit
deleted_fp, spam_fp = nil
diff --git a/bin/sup-tweak-labels b/bin/sup-tweak-labels
index f603502..bf36a32 100755
--- a/bin/sup-tweak-labels
+++ b/bin/sup-tweak-labels
@@ -61,7 +61,7 @@ remove_labels = opts[:remove].to_set_of_symbols ","
Trollop::die "nothing to do: no labels to add or remove" if add_labels.empty? && remove_labels.empty?
Redwood::start
-index = Redwood::Index.init $opts[:index]
+index = Redwood::Index.init opts[:index]
index.lock_interactively or exit
begin
index.load
--
1.6.5
_______________________________________________
Sup-devel mailing list
Sup-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-devel
next reply other threads:[~2010-01-05 17:23 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-05 17:20 Anthony Martinez [this message]
2010-01-05 21:58 ` William Morgan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1262712024-25264-1-git-send-email-pi+sup@pihost.us \
--to=pi+sup@pihost.us \
--cc=sup-devel@rubyforge.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox