Skip to content

Commit

Permalink
fix version function
Browse files Browse the repository at this point in the history
  • Loading branch information
fcjr committed Sep 1, 2022
1 parent 3e5d339 commit 2467749
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ const dns = require("node:dns");
const { readFileSync, createReadStream } = require("node:fs");
const os = require("node:os");
const readline = require("node:readline");
const package = require('./package.json');

// TODO don't use deasync
const deasync = require("deasync");
Expand Down Expand Up @@ -339,7 +340,6 @@ program
"Pure JS* implementation of pactester. \n\n * (Almost. Currently still relies on c++.)"
)
.helpOption(false)
.version("0.0.4", "-v")
.option(
"-p <pacfile>",
"PAC file to test (specify '-' to read from standard input)"
Expand All @@ -351,8 +351,8 @@ program
"client IP address (as returned by myIpAddress() function in PAC files), defaults to IP address on which it is running."
)
.option("-f <urlslist>", "a file containing list of URLs to be tested.")
.option("-v", "print version and exit");
// .option("-e", "Deprecated: IPv6 extensions are enabled by default now.")
// .option("-e", "Deprecated: IPv6 extensions are enabled by default now.")
.version(package.version, "-v", "print version and exit");

program.parse();

Expand Down

0 comments on commit 2467749

Please sign in to comment.