Skip to content

Commit

Permalink
Add basic info message
Browse files Browse the repository at this point in the history
  • Loading branch information
Nixinova committed Aug 25, 2024
1 parent e3c5fd4 commit 2e6c907
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Changelog

## Next
- Added basic message when no arguments are given.
- Changed output of `getVersions` to replace '`.x`' with the actual game version.
- Changed CLI output of `--list` to present the versions in prose instead of JSON.

Expand Down
5 changes: 5 additions & 0 deletions src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,3 +104,8 @@ else if (ver) {
console.log(`Resource pack format of ${ver} is ${result}`)
}
}
// No input: print information
else {
console.log(`pack-format: version ${VERSION}.`)
console.log('Run pack-format --help for usage.')
}

0 comments on commit 2e6c907

Please sign in to comment.