From c5f50be79a642a910dae5bed78bfdc30724e285c Mon Sep 17 00:00:00 2001 From: Kate Ward Date: Thu, 25 Jan 2018 15:16:05 +0100 Subject: Fixed to work again after code reorg. --- examples/debug_output.sh | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) (limited to 'examples/debug_output.sh') diff --git a/examples/debug_output.sh b/examples/debug_output.sh index b3ecec2..a5e61c8 100755 --- a/examples/debug_output.sh +++ b/examples/debug_output.sh @@ -11,10 +11,10 @@ # $ ./debug_output.sh sing # $ ./debug_output.sh --debug sing -# source shflags -. ../src/shflags +# Source shflags. +. ../shflags -# define flags +# Define flags. DEFINE_boolean 'debug' false 'enable debug mode' 'd' FLAGS_HELP=`cat <&2 } -die() { - [ $# -gt 0 ] && echo "error: $@" >&2 +die() { [ $# -gt 0 ] && echo "error: $@" >&2 flags_help exit 1 } - -# parse the command-line +# Parse the command-line. FLAGS "$@" || exit 1 eval set -- "${FLAGS_ARGV}" -- cgit v1.2.3