From 225b95902103d5849404639e68c5ec1f450c464d Mon Sep 17 00:00:00 2001 From: Patrick J Cherry Date: Mon, 13 Jun 2011 11:49:13 +0100 Subject: Updated options so raise and clear times default to "now" if not specified. --- bin/mauveclient | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin') diff --git a/bin/mauveclient b/bin/mauveclient index b51d687..cfcc1c2 100755 --- a/bin/mauveclient +++ b/bin/mauveclient @@ -72,7 +72,7 @@ def error(msg) exit 1 end -def parse_time_spec(spec) +def parse_time_spec(spec = "now") now = Mauve::MauveTime.now return now if spec == 'now' @@ -117,7 +117,7 @@ opts = GetoptLong.new( # # Can catch empty arguments better if we set the GetoptLong things to # "optional" rather than "required" and catch the empty arg here. - error "#{opt} cannot be empty" if arg.empty? and not %w(-h -p -v).include?(opt) + error "#{opt} cannot be empty" if arg.empty? and not %w(-h -p -v -c -r).include?(opt) case opt when '-h' -- cgit v1.2.1