Skip to content

Commit

Permalink
[FIX] simplified debug flag options to only use --debug
Browse files Browse the repository at this point in the history
  • Loading branch information
aricart committed Nov 30, 2023
1 parent 2082cc6 commit 964189e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/helpers/cluster.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import { rgb24 } from "https://deno.land/std@0.200.0/fmt/colors.ts";
const defaults = {
c: 3,
p: 4222,
D: false,
chaos: false,
};

Expand All @@ -31,7 +30,6 @@ const argv = parse(
"p": ["port"],
"c": ["count"],
"d": ["debug"],
"D": ["server-debug"],
"j": ["jetstream"],
},
default: defaults,
Expand All @@ -41,7 +39,7 @@ const argv = parse(

if (argv.h || argv.help) {
console.log(
"usage: cluster [--count 3] [--port 4222] [--debug] [--server_debug] [--jetstream] [--chaos]\n",
"usage: cluster [--count 3] [--port 4222] [--debug] [--jetstream] [--chaos]\n",
);
Deno.exit(0);
}
Expand All @@ -53,7 +51,7 @@ let cluster: NatsServer[];

try {
const base = { debug: false };
const serverDebug = argv["server-debug"];
const serverDebug = argv["debug"];
if (serverDebug) {
base.debug = true;
}
Expand Down

0 comments on commit 964189e

Please sign in to comment.