getssl icon indicating copy to clipboard operation
getssl copied to clipboard

-u or --upgrade option without any others triggers usage instructions

Open xoferz opened this issue 3 years ago • 1 comments

To Reproduce Run:

# getssl -u 
getssl ver. 2.45
Obtain SSL certificates from the letsencrypt.org ACME server

Usage: getssl [-h|--help] [-d|--debug] [-c|--create] [-f|--force] [-a|--all] [-q|--quiet] [-Q|--mute] [-u|--upgrade] [-X|--experimental tag] [-U|--nocheck] [-r|--revoke cert key] [-w working_dir] [--preferred-chain chain] domain

Options:
  -a, --all          Check all certificates
  -d, --debug        Output debug information
  -c, --create       Create default config files
  -f, --force        Force renewal of cert (overrides expiry checks)
  -h, --help         Display this help message and exit
  -i, --install      Install certificates and reload service
  -q, --quiet        Quiet mode (only outputs on error, success of new cert, or getssl was upgraded)
  -Q, --mute         Like -q, but also mute notification about successful upgrade
  -r, --revoke   "cert" "key" [CA_server] Revoke a certificate (the cert and key are required)
  -u, --upgrade      Upgrade getssl if a more recent version is available - can be used with or without domain(s)
  -X, --experimental tag  Upgrade to experimental releases, specified by tag (e.g. v9.43)
  -U, --nocheck      Do not check if a more recent version is available
  -v  --version      Display current version of getssl
  -w working_dir "Working directory"
  --preferred-chain "chain" Use an alternate chain for the certificate

Expected behavior It should either update or say that no updates are available. It specifically says that -u "can be used with or without domain(s)", but currently implies that there was a wrong option specified.

xoferz avatar Jan 18 '22 11:01 xoferz

Hi @xoferz Thanks for reporting this. It's a duplicate of #728 which is fixed in 2.46, but I forgot to release that version!

I've just done the release, so you shouldn't see this error after you've upgraded

timkimber avatar Jan 20 '22 20:01 timkimber

This can be closed :)

paulocoghi avatar Jun 26 '23 16:06 paulocoghi

yup

xoferz avatar Jun 26 '23 17:06 xoferz