Skip to content

Commit

Permalink
chore: use destructuring instead of array index
Browse files Browse the repository at this point in the history
  • Loading branch information
freaktechnik committed May 18, 2024
1 parent ea992fd commit b983ae8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import buildTree from "pretty-tree";
import formatTree from "./treeify.js";
import chalk from "chalk";
const ARG_COUNT = 1,
FIRST = 0,
cli = meow(`
Usage
$ my-deprecations [username]
Expand Down Expand Up @@ -90,8 +89,9 @@ if(cli.input.length > ARG_COUNT) {
cli.showHelp(ERROR);
}
else {
const [ username ] = cli.input;
tasks.run({
username: cli.input[FIRST],
username,
verbose: cli.flags.verbose,
info: {},
})
Expand Down

0 comments on commit b983ae8

Please sign in to comment.