We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf28d6b commit b6c10b9Copy full SHA for b6c10b9
argsparse.sh
@@ -105,7 +105,7 @@
105
## @code
106
## file directory pipe terminal socket link char unsignedint uint
107
## integer int hexa ipv4 ipv6 ip hostname host portnumber port
108
-## username group
+## username group date
109
## @endcode
110
##
111
## @li "exclude:<option> <option>" @n
@@ -843,6 +843,10 @@ argsparse_check_option_type() {
843
group)
844
getent group "$value" >/dev/null 2>&1
845
;;
846
+ date)
847
+ date --date "$value" >/dev/null 2>&1
848
+ return
849
+ ;;
850
*)
851
# Invoke user-defined type-checking function if available.
852
if ! declare -f "check_option_type_$option_type" >/dev/null
0 commit comments