Skip to content

Commit 0594717

Browse files
committed
chore: update deprecated yargs usage
1 parent 37f3a6f commit 0594717

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/commands/pw.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export function builder(yargs: Argv<PwArgvOptions>): Argv<PwHandlerOptions> {
2525
.positional('password', {
2626
type: 'string',
2727
})
28-
.demand('password')
28+
.demandOption('password')
2929
.check((argv) => {
3030
if (!argv.password.length) {
3131
throw new Error('The password argument must not be empty.');

src/commands/search.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export function builder(
3535
alias: 'email',
3636
type: 'string',
3737
})
38-
.demand('account')
38+
.demandOption('account')
3939
.check((argv) => {
4040
if (!argv.account.length) {
4141
throw new Error('The account argument must not be empty.');

0 commit comments

Comments
 (0)