Forward unknown long-form CLI flags to Electron while preserving app argument semantics - #1009
Conversation
Co-authored-by: highperformancecoder <3075825+highperformancecoder@users.noreply.github.com>
Co-authored-by: highperformancecoder <3075825+highperformancecoder@users.noreply.github.com>
Co-authored-by: highperformancecoder <3075825+highperformancecoder@users.noreply.github.com>
Co-authored-by: highperformancecoder <3075825+highperformancecoder@users.noreply.github.com>
Co-authored-by: highperformancecoder <3075825+highperformancecoder@users.noreply.github.com>
|
Important Review skippedBot user detected. To trigger a single review, invoke the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
@coderabbitai review |
There was a problem hiding this comment.
Copilot review overview
🟢 Approval recommended
The focused changes correctly implement the documented CLI semantics without unresolved issues.
Review effort: Balanced
Findings: None
What changed in this PR
Updates Electron startup argument parsing while preserving Minsky’s positional model loading.
Changes:
- Handles
--versioninternally and forwards unknown long-form switches. - Honors
--and ignores single-dash options. - Collects positional arguments without executable entries.
| File | Description |
|---|---|
gui-js/apps/minsky-electron/src/app/app.ts |
Refines CLI parsing and model-file selection. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Minsky currently consumes
process.argvitself, which caused unknown flags to be ignored by Electron/Chromium. This change routes unknown--...switches to Electron and keeps existing Minsky-specific argument behavior intact.CLI parsing behavior
--versioninternally.--foo,--foo=bar) toapp.commandLine.appendSwitch(...).--as an explicit end-of-options delimiter; subsequent args are treated as positional inputs.Positional argument handling
Safety/compatibility constraints
-x) to avoid changing meaning of short-form or platform-injected args.This change is