PowerShell / ProjectMercury

An interactive shell to work with AI-powered assistance providers
MIT License
57 stars 15 forks source link

Help for /code does not explain numeric argument for code command; help for /code copy does not explain what -1 arg value means #97

Closed DJackman123 closed 5 months ago

DJackman123 commented 7 months ago

Prerequisites

Steps to reproduce

Use the /code --help command. Output is the "default" help for the code command.
Use the /code copy --help command. Output is help on the copy command.

Expected behavior

"default" help for the code command should say something about what the numeric argument means.
Help for copy should explain what a -1 value for the argument means (copies all code snippets to the clipboard).

Suggestion: for default help:
copy [<n>]     Copy the n-th code snippet from the last response to clipboard (1-based, default copies all code snippets).

for copy help:
<n>  The n-th (starts from 1) code block to copy. Default value is -1, which copies all code snippets.

Actual behavior

aish:1> /code --help
Description:
  Copy or save the code snippet from the last response.

Usage:
  code [command] [options]

Options:
  -h, --help  Show help and usage information

Commands:
  copy <n>     Copy the code snippet from the last response to clipboard. [default: -1]
  save <file>  Save the code snippet from the last response to a file.

aish:2> /code copy --help
Description:
  Copy the code snippet from the last response to clipboard.

Usage:
  code copy [<n>] [options]

Arguments:
  <n>  The n-th (starts from 1) code block to copy. [default: -1]

Options:
  -h, --help  Show help and usage information

Error details

No response

Environment data

Name                           Value
----                           -----
PSVersion                      7.4.1
PSEdition                      Core
GitCommitId                    7.4.1
OS                             Microsoft Windows 10.0.22631
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Version

v0.1.0-preview.1

Visuals

No response