[Top][All Lists]
[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
- [FYI] {ylwrap-refactor} Refactoring (eventual rewriting) of the `ylwrap' script., Stefano Lattarini, 2011/05/05
- [FYI] {ylwrap-refactor} ylwrap: various refactorings, few improvements, Stefano Lattarini, 2011/05/05
- [FYI] {ylwrap-refactor} ylwrap: fixlets in option parsing,
Stefano Lattarini <=
- [FYI] {ylwrap-refactor} ylwrap: make less general and more "expert", Stefano Lattarini, 2011/05/05
- [FYI] {ylwrap-refactor} ylwrap: new subroutine `tr_cpp', Stefano Lattarini, 2011/05/05
- [FYI] {ylwrap-refactor} ylwrap: new subroutine `handle_renaming', Stefano Lattarini, 2011/05/05
- [FYI] {ylwrap-refactor} ylwrap: warn when expected output files are missing, Stefano Lattarini, 2011/05/05
- [FYI] {ylwrap-refactor} ylwrap: cleanup refactoring (no semantic change), Stefano Lattarini, 2011/05/05
- [FYI] {ylwrap-refactor} ylwrap: another cleanup refactoring (no semantic change), Stefano Lattarini, 2011/05/05
- [FYI] {ylwrap-refactor} ylwrap: get rid of the loop on "FROM TARGET" couples, Stefano Lattarini, 2011/05/05
- FYI] {ylwrap-refactor} ylwrap: go into tempdir only when running wrapped program, Stefano Lattarini, 2011/05/05
- [FYI] {ylwrap-refactor} ylwrap: pull `dos_fix_yacc_filenames' out of `handle_renaming', Stefano Lattarini, 2011/05/05
- [FYI] {ylwrap-refactor} ylwrap: move "update if changed" logic out of `handle_renaming', Stefano Lattarini, 2011/05/05