Skip to content

Commit 680c0d4

Browse files
authored
Merge pull request #10 from vladaCizek/fix/api-input
fix api-input in a wrong const
2 parents 402187e + 3842a64 commit 680c0d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/commands/get/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export default class FlagsmithGet extends Command {
3030
async run(): Promise<void> {
3131
const {args, flags} = await this.parse(FlagsmithGet)
3232
const environment = args.environment || process.env.FLAGSMITH_ENVIRONMENT
33-
const api = args.api || process.env.FLAGSMITH_ENVIRONMENT
33+
const api = flags.api || process.env.FLAGSMITH_ENVIRONMENT
3434
if (environment) {
3535
this.log('A flagsmith environment was not specified, run flagsmith get --help for more usage.')
3636
}

0 commit comments

Comments
 (0)