aboutsummaryrefslogtreecommitdiff
path: root/ag
diff options
context:
space:
mode:
Diffstat (limited to 'ag')
-rwxr-xr-xag4
1 files changed, 2 insertions, 2 deletions
diff --git a/ag b/ag
index 644cb4b..00ce189 100755
--- a/ag
+++ b/ag
@@ -247,9 +247,9 @@ end
###############################################################################
-begin
+if self.private_methods.include? $options.action
send $options.action
-rescue NoMethodError
+else
abort "Internal Error: Unknown action: #{$options.action}"
end
# vim: ts=2 sts=2 et ft=ruby: