From 570a2d0c139fe99e1659119510a20b1779d53ecd Mon Sep 17 00:00:00 2001 From: Peter van der Zee Date: Wed, 9 Apr 2025 17:47:42 +0200 Subject: [PATCH] Fix wrong flag suggestion in manifest help --- src/commands/manifest/cmd-manifest-gradle.test.ts | 4 ++-- src/commands/manifest/cmd-manifest-gradle.ts | 4 ++-- src/commands/manifest/cmd-manifest-kotlin.test.ts | 4 ++-- src/commands/manifest/cmd-manifest-kotlin.ts | 4 ++-- src/commands/manifest/cmd-manifest-scala.test.ts | 2 +- src/commands/manifest/cmd-manifest-scala.ts | 2 +- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/commands/manifest/cmd-manifest-gradle.test.ts b/src/commands/manifest/cmd-manifest-gradle.test.ts index dedc5ea23..7ccad527d 100644 --- a/src/commands/manifest/cmd-manifest-gradle.test.ts +++ b/src/commands/manifest/cmd-manifest-gradle.test.ts @@ -21,7 +21,7 @@ describe('socket manifest gradle', async () => { "[beta] Use Gradle to generate a manifest file (\`pom.xml\`) for a Gradle/Java/Kotlin/etc project Usage - $ socket manifest gradle [--gradle=path/to/gradle/binary] [--out=path/to/result] DIR + $ socket manifest gradle [--bin=path/to/gradle/binary] [--out=path/to/result] DIR Options --bin Location of gradlew binary to use, default: CWD/gradlew @@ -57,7 +57,7 @@ describe('socket manifest gradle', async () => { Examples $ socket manifest gradle . - $ socket manifest gradle --gradlew=../gradlew ." + $ socket manifest gradle --bin=../gradlew ." ` ) expect(`\n ${stderr}`).toMatchInlineSnapshot(` diff --git a/src/commands/manifest/cmd-manifest-gradle.ts b/src/commands/manifest/cmd-manifest-gradle.ts index 367e700d6..14d989b77 100644 --- a/src/commands/manifest/cmd-manifest-gradle.ts +++ b/src/commands/manifest/cmd-manifest-gradle.ts @@ -56,7 +56,7 @@ const config: CliCommandConfig = { }, help: (command, config) => ` Usage - $ ${command} [--gradle=path/to/gradle/binary] [--out=path/to/result] DIR + $ ${command} [--bin=path/to/gradle/binary] [--out=path/to/result] DIR Options ${getFlagListOutput(config.flags, 6)} @@ -84,7 +84,7 @@ const config: CliCommandConfig = { Examples $ ${command} . - $ ${command} --gradlew=../gradlew . + $ ${command} --bin=../gradlew . ` } diff --git a/src/commands/manifest/cmd-manifest-kotlin.test.ts b/src/commands/manifest/cmd-manifest-kotlin.test.ts index 78cdd729e..0b52bd5c9 100644 --- a/src/commands/manifest/cmd-manifest-kotlin.test.ts +++ b/src/commands/manifest/cmd-manifest-kotlin.test.ts @@ -21,7 +21,7 @@ describe('socket manifest kotlin', async () => { "[beta] Use Gradle to generate a manifest file (\`pom.xml\`) for a Kotlin project Usage - $ socket manifest kotlin [--gradle=path/to/gradle/binary] [--out=path/to/result] DIR + $ socket manifest kotlin [--bin=path/to/gradle/binary] [--out=path/to/result] DIR Options --bin Location of gradlew binary to use, default: CWD/gradlew @@ -57,7 +57,7 @@ describe('socket manifest kotlin', async () => { Examples $ socket manifest kotlin . - $ socket manifest kotlin --gradlew=../gradlew ." + $ socket manifest kotlin --bin=../gradlew ." ` ) expect(`\n ${stderr}`).toMatchInlineSnapshot(` diff --git a/src/commands/manifest/cmd-manifest-kotlin.ts b/src/commands/manifest/cmd-manifest-kotlin.ts index 199db7763..f1a4e0853 100644 --- a/src/commands/manifest/cmd-manifest-kotlin.ts +++ b/src/commands/manifest/cmd-manifest-kotlin.ts @@ -61,7 +61,7 @@ const config: CliCommandConfig = { }, help: (command, config) => ` Usage - $ ${command} [--gradle=path/to/gradle/binary] [--out=path/to/result] DIR + $ ${command} [--bin=path/to/gradle/binary] [--out=path/to/result] DIR Options ${getFlagListOutput(config.flags, 6)} @@ -89,7 +89,7 @@ const config: CliCommandConfig = { Examples $ ${command} . - $ ${command} --gradlew=../gradlew . + $ ${command} --bin=../gradlew . ` } diff --git a/src/commands/manifest/cmd-manifest-scala.test.ts b/src/commands/manifest/cmd-manifest-scala.test.ts index 89ffe41f9..b929430fa 100644 --- a/src/commands/manifest/cmd-manifest-scala.test.ts +++ b/src/commands/manifest/cmd-manifest-scala.test.ts @@ -21,7 +21,7 @@ describe('socket manifest scala', async () => { "[beta] Generate a manifest file (\`pom.xml\`) from Scala's \`build.sbt\` file Usage - $ socket manifest scala [--sbt=path/to/sbt/binary] [--out=path/to/result] FILE|DIR + $ socket manifest scala [--bin=path/to/sbt/binary] [--out=path/to/result] FILE|DIR Options --bin Location of sbt binary to use diff --git a/src/commands/manifest/cmd-manifest-scala.ts b/src/commands/manifest/cmd-manifest-scala.ts index cab812681..355dda5fe 100644 --- a/src/commands/manifest/cmd-manifest-scala.ts +++ b/src/commands/manifest/cmd-manifest-scala.ts @@ -49,7 +49,7 @@ const config: CliCommandConfig = { }, help: (command, config) => ` Usage - $ ${command} [--sbt=path/to/sbt/binary] [--out=path/to/result] FILE|DIR + $ ${command} [--bin=path/to/sbt/binary] [--out=path/to/result] FILE|DIR Options ${getFlagListOutput(config.flags, 6)}