Skip to content

Commit 6ef6e04

Browse files
committed
refactor: allow unknownFlags in configure command
1 parent 7179a48 commit 6ef6e04

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

commands/configure.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,25 @@
1010
import { slash } from '@poppinss/utils'
1111
import { installPackage, detectPackageManager } from '@antfu/install-pkg'
1212
import { args, BaseCommand, flags } from '../modules/ace/main.js'
13+
import { CommandOptions } from '../types/ace.js'
1314

1415
/**
1516
* The configure command is used to configure packages after installation
1617
*/
1718
export default class Configure extends BaseCommand {
1819
static commandName = 'configure'
1920
static description = 'Configure a package post installation'
21+
static options: CommandOptions = {
22+
allowUnknownFlags: true,
23+
}
24+
25+
get parsedFlags() {
26+
return this.parsed.flags
27+
}
28+
29+
get parsedArgs() {
30+
return this.parsed._
31+
}
2032

2133
@args.string({ description: 'Package name' })
2234
declare name: string

0 commit comments

Comments
 (0)