From 28635c6b1117f7903eb6327f8bef9679825389c9 Mon Sep 17 00:00:00 2001 From: Claas Augner Date: Mon, 5 Feb 2024 12:44:17 +0100 Subject: [PATCH] chore(ai-test): document args --- ai-test/README.md | 7 ++++--- ai-test/src/main.rs | 3 +++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/ai-test/README.md b/ai-test/README.md index 0c128f91..860c48db 100644 --- a/ai-test/README.md +++ b/ai-test/README.md @@ -10,9 +10,10 @@ To understand how this tool works, run: `cargo run -p ai-test -- test --help` Usage: ai-test test [OPTIONS] Options: - -p, --path - -o, --out - -h, --help Print help + -p, --path Path to YAML file with list of lists (initial question + follow-up questions) + -o, --out Path to directory to write the test results as `1.json`, `1.md`, etc + --no-subscription Perform test as free Core user without subscription + -h, --help Print help ``` For example, to request answers for all questions in the [prompts.yaml](./data/prompts.yaml) file, run (from the repository root): diff --git a/ai-test/src/main.rs b/ai-test/src/main.rs index 102c5877..e72dc404 100644 --- a/ai-test/src/main.rs +++ b/ai-test/src/main.rs @@ -22,10 +22,13 @@ struct Cli { #[derive(Subcommand)] enum Commands { Test { + /// Path to YAML file with list of lists (initial question + follow-up questions). #[arg(short, long)] path: Option, + /// Path to directory to write the test results as `1.json`, `1.md`, etc. #[arg(short, long)] out: Option, + /// Perform test as free Core user without subscription. #[arg(long, action)] no_subscription: bool, },