[Windows] Attach GUI to current console when started from a command line#9858
Open
mpaperno wants to merge 1 commit intobambulab:masterfrom
Open
[Windows] Attach GUI to current console when started from a command line#9858mpaperno wants to merge 1 commit intobambulab:masterfrom
mpaperno wants to merge 1 commit intobambulab:masterfrom
Conversation
…per CLI message output (like --help and parameter parsing errors).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Currently there is no output to the console when running Studio from a command line on Windows. For example
--helpoutput or CLI parameter parsing errors. The program just appears to not do anything at all in these cases. This is typical for Windows GUI programs since they don't usually need console interaction.This fix will attach to the current console, if there is one, meaning only if it was started from a console in the first place. It will not open a new console window or start a new process.
[I use this technique on "all" my Win GUI programs for a couple decades now.]
Of course
--helpis the only way to get a real listing of currently supported switches, since the Wiki article is rather dated/missing a lot of them.Thanks,
-Max