fortify / fcli

fcli is a command-line utility for interacting with various Fortify products
https://fortify.github.io/fcli/
Other
31 stars 22 forks source link

`--store` option: no properties accepted #613

Closed rsenden closed 1 month ago

rsenden commented 1 month ago

Current Behavior

The help output for the --store option shows the following:

image

However, when trying to pass any such properties, fcli throws an exception:

image

Expected Behavior

Either [=<propertyNames>] should be removed from the --store option description (to indicate that this option accepts only a variable name, not an optional set of properties), or fcli should properly accept an optional list of properties.

Quite likely, the functionality for specifying property names to be stored is already implemented, and it's just the validation not taking into account the possibility of such optional property names. If so, we could either update the regex, or even just keep the current regex but only pass the part before any = sign to the regex.

Steps To Reproduce

No response

Environment

fcli: 2.7.0 (but likely affects all 2.x versions)

Anything else?

No response