Skip to content

Commit

Permalink
add simple help
Browse files Browse the repository at this point in the history
teuben committed Jun 30, 2023
1 parent 2884008 commit 8c3cba0
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions animate1
Original file line number Diff line number Diff line change
@@ -7,10 +7,19 @@
#> RADIO xcol=x1v i,x1v,rho,press,vel1,vel2,vel3
#> RADIO ycol=vel1 i,x1v,rho,press,vel1,vel2,vel3

# set defaults
base=LinWave
xcol=x1v
ycol=vel1
#--HELP
# Animation of tables using NEMO's tabplot
base=LinWave # basename (including directories if needed)
xcol=x1v # X column name
ycol=vel1 # Y column name
#--HELP


if [ "$1" == "--help" ] || [ "$1" == "-h" ]; then
set +x
awk 'BEGIN{s=0} {if ($1=="#--HELP") s=1-s; else if(s) print $0; }' $0
exit 0
fi

# simple keyword=value command line parser for bash
for arg in "$@"; do

0 comments on commit 8c3cba0

Please sign in to comment.