Skip to content

Commit c10f700

Browse files
committed
refactor: remove deprecated --targetusername flag
The --targetusername (-u) flag was deprecated in favor of the standardized --target-org (-o) flag used across Salesforce CLI commands. BREAKING CHANGE: The --targetusername (-u) flag has been removed. Use --target-org (-o) instead.
1 parent 9e89166 commit c10f700

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/browserforce-command.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Flags, SfCommand, Ux, requiredOrgFlagWithDeprecations } from '@salesforce/sf-plugins-core';
1+
import { Flags, SfCommand, Ux } from '@salesforce/sf-plugins-core';
22
import { promises } from 'fs';
33
import * as path from 'path';
44
import { Browserforce } from './browserforce.js';
@@ -9,7 +9,7 @@ import * as DRIVERS from './plugins/index.js';
99
export abstract class BrowserforceCommand<T> extends SfCommand<T> {
1010
static baseFlags = {
1111
...SfCommand.baseFlags,
12-
'target-org': requiredOrgFlagWithDeprecations,
12+
'target-org': Flags.requiredOrg(),
1313
definitionfile: Flags.string({
1414
char: 'f',
1515
description: 'path to a browserforce state file',

0 commit comments

Comments
 (0)