From 71bbf3e782d6572ec7ea954c11b5b6d8b8d5a7c8 Mon Sep 17 00:00:00 2001 From: unikounio Date: Mon, 11 Mar 2024 17:39:24 +0900 Subject: [PATCH] [Docs]modify sample file to match readme --- example/parse.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/example/parse.js b/example/parse.js index 9d90ffb..3ec4ef9 100644 --- a/example/parse.js +++ b/example/parse.js @@ -1,4 +1,7 @@ 'use strict'; -var argv = require('../')(process.argv.slice(2)); +// const minimist = require('minimist'); // (normal include) +const minimist = require('../'); // include minimist in git clone of minimist repo + +const argv = minimist(process.argv.slice(2)); console.log(argv);