|
|
@ -64,11 +64,6 @@ options:
|
|
|
|
|
|
|
|
|
|
|
|
See man page for more details.
|
|
|
|
See man page for more details.
|
|
|
|
"
|
|
|
|
"
|
|
|
|
if [[ $1 == illegal_opt ]]; then
|
|
|
|
|
|
|
|
exit 1
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
exit 0
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
error() {
|
|
|
|
error() {
|
|
|
@ -176,9 +171,11 @@ do
|
|
|
|
no-cancel) cancel_auto_show=false;;
|
|
|
|
no-cancel) cancel_auto_show=false;;
|
|
|
|
timeout) timeout=$OPTARG;;
|
|
|
|
timeout) timeout=$OPTARG;;
|
|
|
|
help) print_help;;
|
|
|
|
help) print_help;;
|
|
|
|
*) print_help illegal_opt;;
|
|
|
|
*) error "Unknown option --$OPTION." \
|
|
|
|
|
|
|
|
"Use --help to see available flags.";;
|
|
|
|
esac;;
|
|
|
|
esac;;
|
|
|
|
*) print_help illegal_opt;;
|
|
|
|
*) error "Unknown option -$OPTARG." \
|
|
|
|
|
|
|
|
"Use --help to see available flags.";;
|
|
|
|
esac
|
|
|
|
esac
|
|
|
|
done
|
|
|
|
done
|
|
|
|
shift "$((OPTIND-1))"
|
|
|
|
shift "$((OPTIND-1))"
|
|
|
|