Skip to content

Commit 8f0ad06

Browse files
authored
fix: fix argument names mismatch in publish command to make it work (#9227)
1 parent c54a060 commit 8f0ad06

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.changeset/rotten-bags-carry.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"electron-builder": patch
3+
---
4+
5+
fix: fix argument names mismatch in publish command to make it work

packages/electron-builder/src/publish.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ export function configurePublishCommand(yargs: yargs.Argv): yargs.Argv {
1515
// https://github.com/yargs/yargs/issues/760
1616
// demandOption is required to be set
1717
return yargs
18+
.version(false)
1819
.parserConfiguration({
1920
"camel-case-expansion": false,
2021
})
@@ -31,7 +32,7 @@ export function configurePublishCommand(yargs: yargs.Argv): yargs.Argv {
3132
description: "The app/build version used when searching for an upload release (used by some Publishers)",
3233
})
3334
.option("config", {
34-
alias: ["c"],
35+
alias: ["c", "configurationFilePath"],
3536
type: "string",
3637
description:
3738
"The path to an electron-builder config. Defaults to `electron-builder.yml` (or `json`, or `json5`, or `js`, or `ts`), see " + chalk.underline("https://goo.gl/YFRJOM"),

0 commit comments

Comments
 (0)