automake-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[FYI] {ylwrap-refactor} ylwrap: fixlets in option parsing


From: Stefano Lattarini
Subject: [FYI] {ylwrap-refactor} ylwrap: fixlets in option parsing
Date: Thu, 5 May 2011 17:12:30 +0200
User-agent: KMail/1.13.3 (Linux/2.6.30-2-686; KDE/4.4.4; i686; ; )

* 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  <address@hidden>
 
+       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  <address@hidden>
+
        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 <address@hidden>.
 EOF
     exit $?
     ;;
-  -v|--v*)
+  --version)
     echo "ylwrap $scriptversion"
     exit $?
     ;;
-- 
1.7.2.3




reply via email to

[Prev in Thread] Current Thread [Next in Thread]