Skip to content

Commit

Permalink
Update cli.ts (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
mastafit authored Jan 24, 2024
1 parent 55a6990 commit 2bef3ed
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@ async function cli(args: ParsedArgs) {
return
}

if (args.version) {
console.log(version)
process.exit(0)
}

if (
!config.get(`${getServer()}.pat`) &&
args._[0] !== "login" &&
Expand All @@ -80,11 +85,6 @@ async function cli(args: ParsedArgs) {
process.exit(1)
}

if (args.version) {
console.log(version)
process.exit(0)
}

args._ = args._.map((arg) => arg.toLowerCase().replace(/_/g, "-"))
for (const k in args) {
args[k.toLowerCase().replace(/-/g, "_")] = args[k]
Expand Down

0 comments on commit 2bef3ed

Please sign in to comment.