Skip to content

Commit

Permalink
chore: update deprecated yargs usage
Browse files Browse the repository at this point in the history
  • Loading branch information
wKovacs64 committed Nov 9, 2023
1 parent 37f3a6f commit 0594717
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/commands/pw.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export function builder(yargs: Argv<PwArgvOptions>): Argv<PwHandlerOptions> {
.positional('password', {
type: 'string',
})
.demand('password')
.demandOption('password')
.check((argv) => {
if (!argv.password.length) {
throw new Error('The password argument must not be empty.');
Expand Down
2 changes: 1 addition & 1 deletion src/commands/search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export function builder(
alias: 'email',
type: 'string',
})
.demand('account')
.demandOption('account')
.check((argv) => {
if (!argv.account.length) {
throw new Error('The account argument must not be empty.');
Expand Down

0 comments on commit 0594717

Please sign in to comment.