Skip to content

Commit

Permalink
Merge pull request #168 from amtrack/fix/api-version-flag
Browse files Browse the repository at this point in the history
fix: regression of --api-version flag from v1.0.0-beta.28
  • Loading branch information
amtrack authored Jun 10, 2024
2 parents 490d15b + 663eb93 commit 4571e83
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/commands/package.xml/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ export class PackageXmlCreateCommand extends SfCommand<any> {
public async run(): Promise<any> {
const { flags } = await this.parse(PackageXmlCreateCommand);
const meta = {};
if (flags.apiversion) {
meta["version"] = flags.apiversion;
if (flags["api-version"]) {
meta["version"] = flags["api-version"];
}
const metadataComponentNames =
flags.metadata === "-"
Expand Down
4 changes: 2 additions & 2 deletions src/commands/package.xml/generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ export class PackageXmlGenerateCommand extends SfCommand<any> {
throw new Error(`Could not parse inputfile at path ${flags.inputfile}`);
}
const meta = {};
if (flags.apiversion) {
meta["version"] = flags.apiversion;
if (flags["api-version"]) {
meta["version"] = flags["api-version"];
}
const ignorePatterns = [
...(await getNonEmptyLinesFromFiles(flags.ignorefile)),
Expand Down

0 comments on commit 4571e83

Please sign in to comment.