diff --git a/README.md b/README.md index 1f6dd7e..b94b378 100644 --- a/README.md +++ b/README.md @@ -28,16 +28,12 @@ curl -s https://raw.githubusercontent.com/kunalparmar/minikube-nfs/master/miniku ```sh - - ## . - ## ## ## == _ _ _____ ____ - ## ## ## ## ## === | \ | | ___/ ___| - /"""""""""""""""""\___/ === | \| | |_ \___ \ - ~~~ {~~ ~~~~ ~~~ ~~~~ ~~~ ~ / ===- ~~~ | |\ | _| ___) | - \______ o __/ |_| \_|_| |____/ - \ \ __/ - \____\_______/ - + _ _ + _ _ ( ) ( ) _ _ _____ ____ + ___ ___ (_) ___ (_)| |/ ) _ _ | |_ __ | \ | | ___/ ___| + / _ ` _ `\| |/ _ `\| || , < ( ) ( )| _`\ / __`\ | \| | |_ \___ \ + | ( ) ( ) || || ( ) || || |\`\ | (_) || |_) )( ___/ | |\ | _| ___) | + (_) (_) (_)(_)(_) (_)(_)(_) (_)`\___/ (_,__/ `\____) |_| \_|_| |____/ Usage: $ minikube-nfs [options] diff --git a/minikube-nfs.sh b/minikube-nfs.sh index 0851a7e..db36d45 100755 --- a/minikube-nfs.sh +++ b/minikube-nfs.sh @@ -27,6 +27,7 @@ Usage: $0 [options] Options: + -h, --help Print usage -f, --force Force reconfiguration of nfs -p, --profile Minikube profile to use (default to 'minikube') -n, --nfs-config NFS configuration to use in /etc/exports. (default to '-alldirs -mapall=\$(id -u):\$(id -g)') @@ -120,7 +121,6 @@ setPropDefaults() # @info: Parses and validates the CLI arguments parseCli() { - echoInfo "Parsing args ... \t\t\t\t" for i in "${@}" do case $i in @@ -160,6 +160,10 @@ parseCli() prop_use_ip="${i#*=}" ;; + -h|--help) + usage + ;; + *) echoError "Unknown argument '$i' given" usage