Skip to content

Commit

Permalink
client: throw on unknown client cli arg (#2490)
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrocheleau authored Jan 19, 2023
1 parent 6508bf9 commit 3ec8845
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/client/bin/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,9 @@ const args: ClientOpts = yargs(hideBin(process.argv))
describe:
'Block number to start syncing from. Must be lower than the local chain tip. Note: this is destructive and removes blocks from the blockchain, please back up your datadir before using.',
number: true,
}).argv
})
// strict() ensures that yargs throws when an invalid arg is provided
.strict().argv

/**
* Initializes and returns the databases needed for the client
Expand Down

0 comments on commit 3ec8845

Please sign in to comment.