Skip to content

Commit

Permalink
Edit README
Browse files Browse the repository at this point in the history
  • Loading branch information
febeling committed Dec 7, 2023
1 parent 0058d4d commit 0a47082
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,11 @@ synopt
// Slice off node executable and script
const argv = process.argv.slice(2);

// Destructure result
// And parse arguments. No exceptions to catch, just check result object
const { ok, error, options } = synopt.parse(argv);

if (ok) {
// Happy case
main(options);
} else {
// Handle errors: missing value, or unknown options/typos, etc.
Expand Down

0 comments on commit 0a47082

Please sign in to comment.