Skip to content

Commit

Permalink
fix(deploy): fix flags used for targetusername
Browse files Browse the repository at this point in the history
  • Loading branch information
azlam-abdulsalam committed Aug 7, 2023
1 parent b236830 commit 6355eb7
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions packages/sfpowerscripts-cli/src/commands/orchestrator/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import SFPLogger, {
import { COLOR_TIME } from '@dxatscale/sfp-logger';
import getFormattedTime from '@dxatscale/sfpowerscripts.core/lib/utils/GetFormattedTime';
import { Flags } from '@oclif/core';
import { arrayFlagSfdxStyle, loglevel, logsgroupsymbol } from '../../flags/sfdxflags';
import { arrayFlagSfdxStyle, loglevel, logsgroupsymbol, requiredUserNameFlag } from '../../flags/sfdxflags';

// Initialize Messages with the current plugin directory
Messages.importMessagesDirectory(__dirname);
Expand All @@ -30,13 +30,8 @@ export default class Deploy extends SfpowerscriptsCommand {
protected static requiresDevhubUsername = false;
protected static requiresProject = false;

public static Flags = {
targetorg: Flags.string({
char: 'u',
description: messages.getMessage('targetOrgFlagDescription'),
default: 'scratchorg',
required: true,
}),
public static flags = {
targetorg: requiredUserNameFlag,
artifactdir: Flags.directory({
description: messages.getMessage('artifactDirectoryFlagDescription'),
default: 'artifacts',
Expand Down

0 comments on commit 6355eb7

Please sign in to comment.