list: better options parsing

This commit is contained in:
Jérémy Lecour 2020-10-12 23:49:45 +02:00 committed by Jérémy Lecour
parent 83d0ef2449
commit 9f3b0a4cd4

View file

@ -215,7 +215,7 @@ Revoke a client cert with is commonName (CN) :
List all actually valid commonName (CN) :
${0} list [-a|v|r]
${0} list [-a|--all|-v|--valid|-r|--revoked]
Check expiration date of valid certificates :
@ -763,6 +763,11 @@ list() {
exit 0
fi
if [ -z "${1}" ]; then
show_usage >&2
exit 1
fi
list_valid=0
list_revoked=1