aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorPatrick J Cherry <patrick@bytemark.co.uk>2011-06-13 11:49:13 +0100
committerPatrick J Cherry <patrick@bytemark.co.uk>2011-06-13 11:49:13 +0100
commit225b95902103d5849404639e68c5ec1f450c464d (patch)
tree5dcd031231792aa609496e97438391b0a5b1745b /bin
parentb22cbc87927553f6dbb5754281e95fe9bad2eed1 (diff)
Updated options so raise and clear times default to "now" if not specified.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/mauveclient4
1 files changed, 2 insertions, 2 deletions
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'