Next: Example option help text, Previous: Example option definitions, Up: Quick Start [Contents][Index]
This program will produce a program that digests its options and writes the values as shell script code to stdout. Run the following short script to produce this program:
base=check BASE=`echo $base | tr '[a-z-]' '[A-Z_]'` cflags="-DTEST_${BASE} `autoopts-config cflags`" ldflags="`autoopts-config ldflags`" autogen ${base}.def cc -o ${base} -g ${cflags} ${base}.c ${ldflags} ./${base} --help