Skip to content

Update random token generation as suggested - #1

Merged
VishalX merged 1 commit into
vkjain/c-benchmark-random-tokensfrom
fix-options-checks
May 21, 2026
Merged

Update random token generation as suggested#1
VishalX merged 1 commit into
vkjain/c-benchmark-random-tokensfrom
fix-options-checks

Conversation

@VishalX

@VishalX VishalX commented May 21, 2026

Copy link
Copy Markdown
Owner

Use the existing optional as a sentinel to detect conflicts eagerly at parse time (throw immediately if a second prompt source is given). After the loop, the optional's own state is sufficient to validate --use_random_tokens: absent means -l was never given, string means --prompt/--prompt_file was given. This avoids adding fields to Options and keeps VerifyOptions' signature unchanged.

Use the existing optional<PromptNumberOfTokensOrContent> as a sentinel
to detect conflicts eagerly at parse time (throw immediately if a second
prompt source is given). After the loop, the optional's own state is
sufficient to validate --use_random_tokens: absent means -l was never
given, string means --prompt/--prompt_file was given. This avoids adding
fields to Options and keeps VerifyOptions' signature unchanged.
@VishalX
VishalX merged commit a4bb5b2 into vkjain/c-benchmark-random-tokens May 21, 2026
1 of 11 checks passed
@VishalX
VishalX deleted the fix-options-checks branch May 22, 2026 23:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant