Skip to content

Commit

Permalink
feat(bin): change version cliflag, add tool name to version output
Browse files Browse the repository at this point in the history
  • Loading branch information
vinnyA3 committed Jun 18, 2022
1 parent 881eb27 commit 5ac027a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions bin/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,17 @@ import utils from "../src/utils";
import pkgJSON from "../package.json";

const { checkExecutableSync } = lib;
const { version: pkgVersion } = pkgJSON;
const { name: pkgName, version: pkgVersion } = pkgJSON;
const {
cliInput: { validateDirectoryLocation, validateAnimeName },
} = utils;

const versionOutput = `${pkgName} v${pkgVersion}`;

const program = new Command()
.name("animego-dl")
.description("CLI tool to download your favorite anime series.")
.version(pkgVersion)
.version(`${versionOutput}`, "-v, --version", "output the current version")
.requiredOption(
"-d, --directory <string>",
"the download directory for your anime [string] [required]",
Expand Down

0 comments on commit 5ac027a

Please # to comment.