Don't exit with an error code ("non-null") when the usage information
was requested with "--help", and write errors parsing the command line
to stderr and exit with code 2.
echo " update-caches"
echo " Force rebuild of all cache files."
echo
- exit 2
+ exit 0
}
function UpdatePluginCache {
[[ $# -eq 0 ]] || Usage
UpdatePluginCache
;;
- *)
+ "--help")
Usage
+ ;;
+ *)
+ ax_error "Invalid command \"$cmd\"!"
+ ax_error "Try \"$0 --help\" for more information."
+ exit 2
esac