Skip to content

Conversation

liang3zy22
Copy link
Contributor

I think the usage info for sbt argument java-home is not correct:

  # java version (default: java from PATH, currently $(java -version 2>&1 | grep version))
  --java-home <path>         alternate JAVA_HOME

Actually, I think it is a copy-paste from sbt-version usage info.

  # sbt version (default: from project/build.properties if present, else latest release)
  --sbt-version  <version>   use the specified version of sbt

So I created this PR to fix the issue.

@lightbend-cla-validator
Copy link

Hi @liang3zy22,

Thank you for your contribution! We really value the time you've taken to put this together.

We see that you have signed the Lightbend Contributors License Agreement before, however, the CLA has changed since you last signed it.
Please review the new CLA and sign it before we proceed with reviewing this pull request:

https://www.lightbend.com/contribute/cla

@liang3zy22
Copy link
Contributor Author

My words are not clear. Could please review it and give better description?

sbt Outdated
@@ -573,7 +573,7 @@ Usage: `basename "$0"` [options]
--sbt-version <version> use the specified version of sbt
--sbt-jar <path> use the specified jar as the sbt launcher

# java version (default: java from PATH, currently $(java -version 2>&1 | grep version))
# JAVA_HOME (this will override default JAVA_HOME)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess we could just remove the line completely?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea. I will update the commit to remove it.

Signed-off-by: Liang Yan <ckgppl_yan@sina.cn>
Copy link
Member

@eed3si9n eed3si9n left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @liang3zy22!

@eed3si9n eed3si9n merged commit 84f1815 into sbt:1.9.x Apr 27, 2023
@liang3zy22 liang3zy22 deleted the sbtusageinfo branch April 28, 2023 00:11
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.

3 participants