You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 28, 2021. It is now read-only.
If I pass an invalid flag like this: corectl -c corectlconf.yaml eval "Count([Name/Alias])" --traffic --json --json is invalid.
This will then return the same value as this command: corectl -c corectlconf.yaml eval "Count([Name/Alias])"
In my conf file I've specified engine, header and app.
The text was updated successfully, but these errors were encountered:
Actually --json is a global flag and can be passed to all commands, so it is still a valid flag for the eval command. However there is not any json output defined for the eval command hence the flag is just silently ignored.
From the help: --json Returns output in JSON format if possible, disables verbose and traffic output
We could add the json flag only for the commands that are applicable, which would render in an error if passed to a command not supporting json output.
If I pass an invalid flag like this:
corectl -c corectlconf.yaml eval "Count([Name/Alias])" --traffic --json
--json is invalid.This will then return the same value as this command:
corectl -c corectlconf.yaml eval "Count([Name/Alias])"
In my conf file I've specified engine, header and app.
The text was updated successfully, but these errors were encountered: