Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@lihaoyi
Copy link
Member

@lihaoyi lihaoyi commented Aug 18, 2025

Rather than taking the first line, we join all lines on " " and return the entire string, which then gets appropriately truncated by complete.sh (if necessary). This means that nicely-formatted doc-comments that are spread over multiple lines will have some of the subsequent line content included in the tab complete descriptions, which can help the user get more information before they need to resort to ./mill --help or ./mill inspect

Before:

lihaoyi mill$ ./mill -
-D  <k=v> Define (or overwrite) a system property.
-b  Ring the bell once if the run completes successfully, twice if it fails.
-d  Show debug output on STDOUT
-i  Run Mill in interactive mode, suitable for opening REPLs and taking user input.
-j  <str> The number of parallel threads. It can be an integer e.g. `5`
-k  Continue build, even after build failures.
-v  Show mill version information and exit.
-w  Watch and re-run the given tasks when when their inputs change.

After

lihaoyi test$ ./mill -
-D  <k=v> Define (or overwrite) a system property.
-b  Ring the bell once if the run completes successfully, twice if it fails.
-d  Show debug output on STDOUT
-i  Run Mill in interactive mode, suitable for opening REPLs and taking user input. Identical to --no-daemon. Must be t...
-j  <str> The number of parallel threads. It can be an integer e.g. `5` meaning 5 threads, an expression e.g. `0.5C` me...
-k  Continue build, even after build failures.
-v  Show mill version information and exit.
-w  Watch and re-run the given tasks when when their inputs change.

@lihaoyi lihaoyi marked this pull request as ready for review August 18, 2025 10:05
@lihaoyi lihaoyi merged commit 56843c3 into com-lihaoyi:main Aug 18, 2025
33 checks passed
@lefou lefou added this to the 1.0.4 milestone Aug 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants