Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WT -? -help --help window should include a link to the command line arguments #4602

Open
Karl-WE opened this issue Feb 15, 2020 · 3 comments
Assignees
Labels
Area-Commandline wt.exe's commandline arguments Issue-Task It's a feature request, but it doesn't really need a major design. Product-Terminal The new Windows Terminal.
Milestone

Comments

@Karl-WE
Copy link

Karl-WE commented Feb 15, 2020

including a perma link into the help window

currently the help output is very basic.

Usually commands in cmd / powershell will not open a Win32 message box for help (except some few like slmgr, msiexec but print it in the console

including a link or output in console session

Please consider to output the help content into the console session and / or include a permanent link to
https://github.com/microsoft/terminal/blob/master/doc/user-docs/UsingCommandlineArguments.md

for further documentation. . This will help new users

currently the output is a Win32 message box.

Help

wt - the Windows Terminal
Usage: [OPTIONS] [SUBCOMMAND]

Options:
-h,--help Print this help message and exit

Subcommands:
new-tab Create a new tab
split-pane Create a new split pane
focus-tab Move focus to another tab


OK

@Karl-WE Karl-WE added the Issue-Feature Complex enough to require an in depth planning process and actual budgeted, scheduled work. label Feb 15, 2020
@ghost ghost added Needs-Tag-Fix Doesn't match tag requirements Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting labels Feb 15, 2020
@zadjii-msft zadjii-msft added the Product-Terminal The new Windows Terminal. label Feb 18, 2020
@DHowett-MSFT DHowett-MSFT added Area-Commandline wt.exe's commandline arguments and removed Product-Terminal The new Windows Terminal. labels Feb 18, 2020
@DHowett-MSFT
Copy link
Contributor

Please consider to output the help content into the console session

This is not possible. Sorry. Second section of #4570 (comment).

@zadjii-msft zadjii-msft added the Product-Terminal The new Windows Terminal. label Feb 19, 2020
@DHowett-MSFT DHowett-MSFT added Issue-Task It's a feature request, but it doesn't really need a major design. and removed Issue-Feature Complex enough to require an in depth planning process and actual budgeted, scheduled work. Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting labels Feb 21, 2020
@ghost ghost removed the Needs-Tag-Fix Doesn't match tag requirements label Feb 21, 2020
@DHowett-MSFT DHowett-MSFT added this to the Terminal v1.0 milestone Feb 21, 2020
@carlos-zamora carlos-zamora self-assigned this May 12, 2020
@l1n3n01z
Copy link

l1n3n01z commented Jan 1, 2022

Not sure if this should be another issue, but an improvement would be to be able to copy the text from the dialogs. Currently it's impossible to select and copy the text that appears in the help or version window.

@zadjii-msft zadjii-msft modified the milestones: Terminal v2.0, 22H2 Jan 4, 2022
@zadjii-msft zadjii-msft modified the milestones: 22H2, Backlog Jul 5, 2023
@KalleOlaviNiemitalo
Copy link

@l1n3n01z, you can press Ctrl+C to copy the text from Win32 message boxes like the ones shown by wt --help and wt --version. The message box plays a sound as if it had not understood the key combination, but it copies the text to the clipboard anyway, formatted like this:

---------------------------
Help
---------------------------
Terminale Windows
1.20.11381.0
---------------------------
OK   
---------------------------

(Curiously, if you press Ctrl+Insert instead, then the message box likewise copies the text, but it does not play a sound.)

As for showing a link in the wt --help window: it could be done by replacing the message box with a task dialog and handling the TDN_HYPERLINK_CLICKED notification in the callback function. However, the current wt --help window has some ugly misalignment and line wrapping in its two-column tables, and a task dialog wouldn't support such formatting any better than a message box, so a custom dialog box might be a better solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Commandline wt.exe's commandline arguments Issue-Task It's a feature request, but it doesn't really need a major design. Product-Terminal The new Windows Terminal.
Projects
None yet
Development

No branches or pull requests

8 participants