Skip to content

Commit

Permalink
chore: Change cli.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
redpeacock78 committed Nov 16, 2021
1 parent 174793b commit b612012
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { readAllSync } from "https://deno.land/[email protected]/streams/conversion.ts
import { getStdinBufferSync } from "https://deno.land/x/[email protected]/mod.ts";
import { Command } from "https://deno.land/x/[email protected]/command/mod.ts";
import { base85encode, base85decode } from "./mod.ts";
import { version } from "./version.ts";

try {
let file: Uint8Array;
Expand Down Expand Up @@ -56,7 +57,7 @@ try {
const { options, args } = await new Command()
.name("base85")
.description("Base85 (Ascii85 with Adobe Escape Sequence) encode or decode FILE, or standard input, to standard output.")
.version("v0.0.12")
.version(version())
.option("-d, --decode", "Decode data")
.arguments("<option>")
.parse(!isatty ? (args_judge! ? [[...stdin!].join(",")] : [Deno.args[0], [...stdin!].join(",")].filter(Boolean)) : !file! ? Deno.args : !args_judge! ? [[...file!].join(",")] : [Deno.args[0], [...file!].join(",")]);
Expand Down

0 comments on commit b612012

Please sign in to comment.