summaryrefslogtreecommitdiff
path: root/lib/getoptlong.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/getoptlong.rb')
-rw-r--r--lib/getoptlong.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/getoptlong.rb b/lib/getoptlong.rb
index 92c37610df..ba9ca3742a 100644
--- a/lib/getoptlong.rb
+++ b/lib/getoptlong.rb
@@ -570,7 +570,7 @@ class GetoptLong
# 1003.2 specifies the format of this message.
#
if ENV.include?('POSIXLY_CORRECT')
- set_error(InvalidOption, "illegal option -- #{ch}")
+ set_error(InvalidOption, "invalid option -- #{ch}")
else
set_error(InvalidOption, "invalid option -- #{ch}")
end