Skip to content

Commit

Permalink
feat: default cli output help (#168)
Browse files Browse the repository at this point in the history
* feat: when cli called without root command default to help view

* chore: changeset
  • Loading branch information
field123 authored Jan 23, 2024
1 parent 86fde87 commit 40243bc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/clever-gifts-train.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"composable-cli": patch
---

when cli called without root command default to help view
1 change: 1 addition & 0 deletions packages/composable-cli/src/composable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ export async function main({
.example("$0 logout", "logout of the CLI")
.strictCommands()
.demandCommand(1)
.default("--help", true)
.help().argv

return 0
Expand Down

0 comments on commit 40243bc

Please sign in to comment.