ggshield icon indicating copy to clipboard operation
ggshield copied to clipboard

`scan` options should be allowed later in the command

Open agateau-gg opened this issue 2 years ago • 0 comments

GitGuardian Shield Version

  • I can reproduce this bug in the latest version

Command executed

ggshield scan path -v foo

Describe the bug

When the command is executed, ggshield complains like this:

Usage: ggshield scan path [OPTIONS] PATHS...
Try 'ggshield scan path -h' for help.

Error: No such option: -v

It will only work if one does: ggshield scan -v path foo.

Expected behavior

It should be possible to use any ggshield scan options (see ggshield scan --help) after a scan sub-command.

agateau-gg avatar Apr 06 '22 13:04 agateau-gg