Skip to content

Honor configuration.options.format in local runs - #386

Merged
nmisek merged 1 commit into
developfrom
nmisek/local-options-format
Nov 20, 2026
Merged

nmisek merged 1 commit into
developfrom
nmisek/local-options-format

Conversation

@nmisek

@nmisek nmisek commented Nov 20, 2026

Copy link
Copy Markdown
Contributor

Problem

The manifest supports configuration.options.format to define how options become command-line arguments (see the manifest docs). The SDK parses this field, but the local executor ignored it and always passed options as -name value (options_args in nextmv/local/executor.py).

As a result, an app that declares format: ["--{{name}}", "{{value}}"] gets --name value on Cloud but -name value locally. Bring-your-own models with a fixed argument style fail locally unless their parser accepts every style.

Change

  • options_args takes an optional format. Each template has {{name}} and {{value}} substituted, and empty resulting arguments are omitted, as the docs describe. A boolean flag with an empty value becomes just --verbose.
  • The executor passes the manifest's configuration.options.format to options_args.
  • With no format set, behavior is unchanged (-name value). I didn't switch the default to the platform's documented -{{name}}={{value}}, because that could break existing non-Python apps that only accept -name value. This can be revisited separately.

Testing

  • New unit tests cover the double-dash, name=value, empty-value omission and empty/missing format cases.
  • End-to-end local multi-file run of an app with format: ["--{{name}}", "{{value}}"] and options {"time_limit": "30", "verbose": ""}. The app received ["--time_limit", "30", "--verbose"]. With the format removed, it received ["-time_limit", "30", "-verbose", ""], the same as before this change.
  • Full test suite: 849 passed. Ruff check and format are clean.

🤖 Generated with Claude Code

Local runs always passed options as `-name value`, ignoring the
manifest's `configuration.options.format`. Apps that declare a format
(e.g. `["--{{name}}", "{{value}}"]`) now receive options in that form,
with empty resulting arguments omitted. Without a format, the existing
`-name value` behavior is unchanged.

Co-Authored-By: Claude Code <noreply@anthropic.com>

@sebastian-quintero sebastian-quintero left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@nmisek
nmisek merged commit e1cdb94 into develop Nov 20, 2026
50 checks passed
@nmisek
nmisek deleted the nmisek/local-options-format branch November 20, 2026 21: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.

2 participants