From 1459ca43c1d186264242254261c2cbd55c6a572d Mon Sep 17 00:00:00 2001 From: Jon Jagger Date: Fri, 2 Aug 2024 10:29:13 +0100 Subject: [PATCH] Use attest command in boolean args FAQ (#265) --- docs.kosli.com/content/faq/_index.md | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/docs.kosli.com/content/faq/_index.md b/docs.kosli.com/content/faq/_index.md index ec36b9b94..77774caa5 100644 --- a/docs.kosli.com/content/faq/_index.md +++ b/docs.kosli.com/content/faq/_index.md @@ -163,20 +163,19 @@ For example, `--artifact-type=file` or `--artifact-type file`. However, an explicitly specified boolean flag value **must** use an `=`. For example, if you try this: ``` -kosli report evidence artifact generic Dockerfile --artifact-type file --compliant true ... +kosli attest generic Dockerfile --artifact-type file --compliant true ... ``` You will get an error stating: ``` -Error: only one argument ... is allowed. -The 2 supplied arguments are: [Dockerfile, true] +Error: accepts at most 1 arg(s), received 2 ``` Here, `--artifact-type file` is parsed as if it was `--artifact-type=file`, leaving: ``` -kosli report evidence artifact generic Dockerfile --compliant true ... +kosli attest generic Dockerfile --compliant true ... ``` Then `--compliant` is parsed as if *implicitly* defaulting to `--compliant=true`, leaving: ``` -kosli report evidence artifact generic Dockerfile true ... +kosli attest generic Dockerfile true ... ``` The parser then sees `Dockerfile` and `true` as the two -arguments to `kosli report evidence artifact generic`. +arguments to `kosli attest generic`.