* lib/ylwrap: Do not recognize anymore the unused `--basedir' option. Be stricter in matching the `--help' and `--version' options. --- ChangeLog | 7 +++++++ lib/ylwrap | 8 ++------ 2 files changed, 9 insertions(+), 6 deletions(-)
diff --git a/ChangeLog b/ChangeLog index 31efc5c..e2c2c81 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,12 @@ 2011-05-05 Stefano Lattarini <stefano.lattar...@gmail.com> + ylwrap: fixlets in option parsing + * lib/ylwrap: Do not recognize anymore the unused `--basedir' + option. Be stricter in matching the `--help' and `--version' + options. + +2011-05-05 Stefano Lattarini <stefano.lattar...@gmail.com> + ylwrap: various refactorings, few improvements * lib/ylwrap: Few more safety measures: abort if we fail to get the current working directory or to chdir to the temporary directory, diff --git a/lib/ylwrap b/lib/ylwrap index 74e0eeb..8ff3308 100755 --- a/lib/ylwrap +++ b/lib/ylwrap @@ -76,11 +76,7 @@ dos_fix_yacc_filenames () test $# -gt 0 || usage_error "missing argument" case "$1" in - --basedir) - basedir=$2 - shift 2 - ;; - -h|--h*) + --help) cat <<\EOF ylwrap: Wrapper for lex/yacc invocations, renaming files as desired. @@ -95,7 +91,7 @@ Report bugs to <bug-autom...@gnu.org>. EOF exit $? ;; - -v|--v*) + --version) echo "ylwrap $scriptversion" exit $? ;; -- 1.7.2.3