Replace the old `string' quoting style with double quotes.

This commit is contained in:
Renato Silva 2014-09-15 17:06:26 -03:00
parent 7fd66536cf
commit 8da3c83852
2 changed files with 5 additions and 5 deletions

View File

@ -2,7 +2,7 @@
# Encoding: ISO-8859-1
##
## EasyOptions 2014.9.11
## EasyOptions 2014.9.15
## Copyright (c) 2013, 2014 Renato Silva
## GNU GPLv2 licensed
##
@ -185,12 +185,12 @@ arguments.each_with_index do |argument, index|
# Long option with unnecessary value
elsif known_option.in_with_value?(argument) and known_option.boolean then
value = argument.split("=")[1]
finish("#{known_option} does not accept a value (you specified `#{value}')")
finish("#{known_option} does not accept a value (you specified \"#{value}\")")
end
end
# Unrecognized option
finish("unrecognized option `#{argument}'") if unknown_option and argument.start_with?("-")
finish("unrecognized option \"#{argument}\"") if unknown_option and argument.start_with?("-")
end
# Help option

View File

@ -1,7 +1,7 @@
#!/bin/bash
##
## EasyOptions 2014.9.11
## EasyOptions 2014.9.15
## Copyright (c) 2013 Renato Silva
## GNU GPLv2 licensed
##
@ -187,7 +187,7 @@ parse_options() {
# Long option with unnecessary value
elif [[ "$option" = -$known_option_name=* && "$known_option_var" != "?" ]]; then
option_value=${option#*=}
show_error "--$known_option_name does not accept a value, you specified \`$option_value'"
show_error "--$known_option_name does not accept a value, you specified \"$option_value\""
exit 1
fi
done