Skip to content

Commit

Permalink
Add help option and update README
Browse files Browse the repository at this point in the history
  • Loading branch information
kunalparmar committed Jul 7, 2019
1 parent 09359f7 commit a1df645
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
16 changes: 6 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,12 @@ curl -s https://raw.githubusercontent.com/kunalparmar/minikube-nfs/master/miniku

```sh


## .
## ## ## == _ _ _____ ____
## ## ## ## ## === | \ | | ___/ ___|
/"""""""""""""""""\___/ === | \| | |_ \___ \
~~~ {~~ ~~~~ ~~~ ~~~~ ~~~ ~ / ===- ~~~ | |\ | _| ___) |
\______ o __/ |_| \_|_| |____/
\ \ __/
\____\_______/
_ _
_ _ ( ) ( ) _ _ _____ ____
___ ___ (_) ___ (_)| |/ ) _ _ | |_ __ | \ | | ___/ ___|
/ _ ` _ `\| |/ _ `\| || , < ( ) ( )| _`\ / __`\ | \| | |_ \___ \
| ( ) ( ) || || ( ) || || |\`\ | (_) || |_) )( ___/ | |\ | _| ___) |
(_) (_) (_)(_)(_) (_)(_)(_) (_)`\___/ (_,__/ `\____) |_| \_|_| |____/
Usage: $ minikube-nfs [options]
Expand Down
6 changes: 5 additions & 1 deletion minikube-nfs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)')
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -160,6 +160,10 @@ parseCli()
prop_use_ip="${i#*=}"
;;

-h|--help)
usage
;;

*)
echoError "Unknown argument '$i' given"
usage
Expand Down

0 comments on commit a1df645

Please sign in to comment.