aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/un.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/un.rb b/lib/un.rb
index 98121111a2..78d6d6e91c 100644
--- a/lib/un.rb
+++ b/lib/un.rb
@@ -342,7 +342,7 @@ def help
open(__FILE__) do |me|
while me.gets("##\n")
if help = me.gets("\n\n")
- if all or argv.delete help[/-e \w+/].sub(/-e /, "")
+ if all or argv.delete help[/^#\s*ruby\s.*-e\s+(\w+)/, 1]
print help.gsub(/^# ?/, "")
end
end