electron-userland / electron-userland/electron-webpack

`npx electron-webpack dev -- --version` improper behavior

Open
#354 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
902
Forks
168
PR merge metrics
No merged PRs in 30d

Description

* **Version**: 2.7.4
* **Target**: MacOS

When running `npx electron-webpack dev -- --version`, my program receives `-- --version` as input `argv`, which is wrong. The `--` should be consumed by `electron-webpack` as this is a standard way to tell that all args after `--` should be passed to the sub-command.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing `npx electron-webpack dev -- --version` on the reported setup, then trace the `electron-webpack dev` command's argument parsing. Done means the separator is consumed and the Electron program receives only `--version`, with the existing command behavior preserved.

Written by the indexing model from the issue text.

Assessment

Tech stack
electron, typescript, webpack
Domain
cli, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.