mirror of
https://github.com/arkenfox/user.js.git
synced 2025-05-07 17:33:45 +02:00
Allow to parse old options for updater.sh
This commit is contained in:
parent
7296d00e84
commit
78432634fb
1 changed files with 7 additions and 0 deletions
|
@ -218,8 +218,15 @@ while :; do
|
||||||
--help|-h) shift; SHOW_HELP="true";;
|
--help|-h) shift; SHOW_HELP="true";;
|
||||||
--version|-v) shift; SHOW_VERSION="true";;
|
--version|-v) shift; SHOW_VERSION="true";;
|
||||||
--backup|-b) shift; MAKE_BACKUP="true";;
|
--backup|-b) shift; MAKE_BACKUP="true";;
|
||||||
|
|
||||||
|
# Deprecated options.
|
||||||
|
-donotupdate) shift; warn "'-donotupdate' is a deprecated option";;
|
||||||
|
-update) shift; warn "'-update' is a deprecated option";;
|
||||||
|
|
||||||
|
# Special cases.
|
||||||
"") break;; # Default case: no more options.
|
"") break;; # Default case: no more options.
|
||||||
*) error "Unrecognized option '$1'";;
|
*) error "Unrecognized option '$1'";;
|
||||||
|
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue