mirror of
https://github.com/arkenfox/user.js.git
synced 2025-04-22 08:29:31 -04:00
Allow to parse old options for updater.sh
This commit is contained in:
parent
7296d00e84
commit
78432634fb
@ -218,8 +218,15 @@ while :; do
|
||||
--help|-h) shift; SHOW_HELP="true";;
|
||||
--version|-v) shift; SHOW_VERSION="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.
|
||||
*) error "Unrecognized option '$1'";;
|
||||
|
||||
esac
|
||||
done
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user