From 8da3c838525fcb6393160d5b23c48ce43a148c34 Mon Sep 17 00:00:00 2001 From: Renato Silva Date: Mon, 15 Sep 2014 17:06:26 -0300 Subject: [PATCH] Replace the old `string' quoting style with double quotes. --- easyoptions.rb | 6 +++--- easyoptions.sh | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/easyoptions.rb b/easyoptions.rb index c15ef82..ade0dad 100644 --- a/easyoptions.rb +++ b/easyoptions.rb @@ -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 diff --git a/easyoptions.sh b/easyoptions.sh index 1e45fcf..ba05031 100644 --- a/easyoptions.sh +++ b/easyoptions.sh @@ -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