Jpp - the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
JShellParser.sh
Go to the documentation of this file.
1 #!/bin/zsh
2 #
3 # \author mdejong
4 #
5 version=1.0
6 script=${0##*/}
7 
8 # ------------------------------------------------------------------------------------------
9 #
10 # Example script for JShellParser
11 #
12 # ------------------------------------------------------------------------------------------
13 
14 if [ -z $JPP_DIR ]; then
15  echo "Variable JPP_DIR undefined."
16  exit
17 fi
18 
19 source $JPP_DIR/setenv.sh $JPP_DIR >& /dev/null
20 
21 if do_usage $*; then
22  usage "$script"
23 fi
24 
25 eval `JShellParser \
26  -o "-a A = 1, 2, 3, 4" \
27  -o "-b B" \
28  -b "-c C" \
29  -o "-d D = ''" \
30  -- "$@"`
31 
32 echo "A = <$A>"
33 echo "B = <$B>"
34 echo "C = <$C>"
35 echo "D = <$D>"
exit
Definition: JPizza.sh:36
then echo
do $DIR JTransitTime o
Definition: JTransitTime.sh:44
* usage
version
Definition: JCalibratePMT.sh:7
esac $JPP_BIN JLogger sh $LOGGER until pgrep JGetMessage</dev/null > dev null