electron / electron/windows-installer

Command-line output suppressed?

Open
#259 2 comments 2 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
1.6k
Forks
267
Avg merge
5h 38m
Merged PRs (30d)
1

Description

I have an electron app that takes some command line arguments/parameters/switches like `--help` and `--version`. (I don't think it matters, but I am building it with [`ember-electron`](https://github.com/felixrieseberg/ember-electron) which uses [`electron-forge`](https://github.com/electron-userland/electron-forge).) It seems that I can successfully pass command-line arguments on Windows using the syntax:
```
X:\some\path>my-app.exe ---
```
However, I can't seem to produce any console output. For example, running `my-app.exe --- --help` appears to do nothing (except momentarily display the busy cursor). I would like to be able to display this output on the command line. Is this possible? I presume this is happening because the exe file is creating a new process, whose output isn't associated with this terminal. Where does that output go? (e.g. does it get logged somewhere or just discarded?)

Note: I tried `set DEBUG=*` and [`set ELECTRON_ENABLE_LOGGING=1`](https://stackoverflow.com/questions/31759367/using-console-log-in-electron-app#answer-40929681) but this did not seem to make any output appear on the terminal/console.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.