Skip to content

[CLI] Fix --cpu and --gpu argument parsers - #4092

Merged
un-def merged 1 commit into
masterfrom
pr_cli_fix_gpuspec_cpuspec_args
Aug 4, 2026
Merged

[CLI] Fix --cpu and --gpu argument parsers#4092
un-def merged 1 commit into
masterfrom
pr_cli_fix_gpuspec_cpuspec_args

Conversation

@un-def

@un-def un-def commented Aug 4, 2026

Copy link
Copy Markdown
Collaborator

Previously, validation errors (pydantic's ValidationError exceptions) slipped through with a traceback, e.g.,

dstack apply --cpu '1..2..3'
dstack apply --gpu '...'

Now, they are catched by the parser and reported:

dstack: error: argument --cpu: invalid cpu_spec value: '1..2..3'
dstack: error: argument --gpu: invalid gpu_spec value: '...'

Previously, validation errors (pydantic's ValidationError
exceptions) slipped through with a traceback, e.g.,

    dstack apply --cpu '1..2..3'
    dstack apply --gpu '...'

Now, they are catched by the parser and reported:

    dstack: error: argument --cpu: invalid cpu_spec value: '1..2..3'
    dstack: error: argument --gpu: invalid gpu_spec value: '...'
@un-def
un-def merged commit 752de28 into master Aug 4, 2026
27 checks passed
@un-def
un-def deleted the pr_cli_fix_gpuspec_cpuspec_args branch August 4, 2026 14:00
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