Jpp  master_rocky
the software that should make you happy
JShellParser.sh
Go to the documentation of this file.
1 #!/bin/zsh
2 #
3 # \author mdejong
4 #
5 
6 # ------------------------------------------------------------------------------------------
7 #
8 # Example script for JShellParser
9 #
10 # ------------------------------------------------------------------------------------------
11 
12 source $JPP_DIR/setenv.sh $JPP_DIR >& /dev/null
13 
14 eval `JShellParser \
15  -o "-a A = 1, 2, 3, 4" \
16  -o "-b B" \
17  -b "-c C" \
18  -o "-d D = ''" \
19  -- "$@"`
20 
21 echo "A = <$A>"
22 echo "B = <$B>"
23 echo "C = <$C>"
24 echo "D = <$D>"