From fa39b29699265e64b2c3b396809010bd45659f81 Mon Sep 17 00:00:00 2001 From: kuntal1461 Date: Sun, 16 Aug 2026 23:26:52 +0530 Subject: [PATCH] fix: validate actors search choice flags --- docs/reference.md | 32 +++++++++++++--------- src/commands/actors/search.ts | 4 +-- src/lib/command-framework/CommandError.ts | 7 +++++ src/lib/command-framework/apify-command.ts | 4 +-- 4 files changed, 30 insertions(+), 17 deletions(-) diff --git a/docs/reference.md b/docs/reference.md index 09308b0d3..1c0c6b34f 100644 --- a/docs/reference.md +++ b/docs/reference.md @@ -698,7 +698,9 @@ DESCRIPTION USAGE $ apify actors search [query] [--category ] [--json] [--limit ] [--offset ] - [--pricing-model ] [--sort-by ] + [--pricing-model + FREE|FLAT_PRICE_PER_MONTH|PRICE_PER_DATASET_ITEM|PAY_PER_EVENT] + [--sort-by relevance|popularity|newest|lastUpdate] [--username ] ARGUMENTS @@ -706,18 +708,22 @@ ARGUMENTS or readme. FLAGS - --category= Filter by category (e.g. - AI). - --json Format the command output as - JSON. - --limit= Maximum number of results to - return. - --offset= Number of results to skip - for pagination. - --pricing-model= Filter by pricing model. - --sort-by= Sort order for the results. - --username= Filter by Actor author - username. + --category= Filter by category (e.g. + AI). + --json Format the command output + as JSON. + --limit= Maximum number of results + to return. + --offset= Number of results to skip + for pagination. + --pricing-model=