Fixed recent shellcheck errors.
diff --git a/shflags_public_test.sh b/shflags_public_test.sh
index 779187c..3d4ac90 100755
--- a/shflags_public_test.sh
+++ b/shflags_public_test.sh
@@ -59,8 +59,9 @@
assertTrue 'setting FLAGS_HELP did not produce expected result' ${grepped}
[ ${grepped} -ne "${FLAGS_TRUE}" ] && th_showOutput
- # test that "'" chars work in help string
+ # Test that "'" chars work in help string.
(
+ # shellcheck disable=SC2034
DEFINE_boolean b false "help string containing a ' char" b
FLAGS "${flag}" >"${stdoutF}" 2>"${stderrF}"
)
@@ -116,13 +117,19 @@
}
testEnhancedHelpOutput() {
+
flags_getoptIsEnh || startSkipping
+ # shellcheck disable=SC2034
DEFINE_boolean test_bool false 'test boolean' b
+ # shellcheck disable=SC2034
DEFINE_integer test_int 0 'test integer' i
+ # shellcheck disable=SC2034
DEFINE_string test_str '' 'test string' s
+ # shellcheck disable=SC2034
DEFINE_string long_desc 'blah' \
'testing of a long description to force wrap of default value' D
+ # shellcheck disable=SC2034
DEFINE_string long_default \
'this_is_a_long_default_value_to_force_alternate_indentation' \
'testing of long default value' F