Skip to content

Commit

Permalink
fix(command): output of --version should end with a new line (#256)
Browse files Browse the repository at this point in the history
  • Loading branch information
c4spar committed Jul 28, 2021
1 parent 5fc11b8 commit 8107875
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion command/command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1374,7 +1374,7 @@ export class Command<

/** Output generated help without exiting. */
public showVersion(): void {
Deno.stdout.writeSync(new TextEncoder().encode(this.getVersion()));
console.log(this.getVersion());
}

/** Output generated help without exiting. */
Expand Down
2 changes: 1 addition & 1 deletion command/test/integration/fixtures/version_option_long.out
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.0
1.0.0
2 changes: 1 addition & 1 deletion command/test/integration/fixtures/version_option_short.out
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.0
1.0.0

0 comments on commit 8107875

Please sign in to comment.