#### Parse command line arguments
-X=`getopt -o "h" --long "help,noscan" -n "$name" -- "$@"`
+X=`getopt -o "hV" --long "help,noscan,version" -n "$name" -- "$@"`
if [ $? != 0 ]; then exit 1; fi
eval set -- "$X"
case "$1" in
-h|--help) help="0"; shift ;;
--noscan) noscan="0"; shift ;;
+ -V|--version) echo "$name $version"; exit 0 ;;
--) shift; break ;;
*) echo "! internal error"; exit 1 ;;
esac