We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08a31e9 commit 12369bbCopy full SHA for 12369bb
bin/fill.js
@@ -1,7 +1,8 @@
1
#!/usr/bin/env node
2
import { Form } from '../src/index.js';
3
+import yargs from 'yargs';
4
-const { argv } = require('yargs')
5
+const parser = yargs(process.argv.slice(2))
6
.command(
7
'* <source> [-m map] [-f filler] [-i input] [-o output]',
8
'Fill a PDF form.',
@@ -44,6 +45,7 @@ const { argv } = require('yargs')
44
45
.help()
46
.strict();
47
48
+const { argv } = parser;
49
const form = new Form();
50
51
form.init(argv.config)
0 commit comments