politty 0.13.0 → 0.13.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -7
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -138,19 +138,21 @@ $ my-cli World -g "Hi" -l
|
|
|
138
138
|
HI, WORLD!
|
|
139
139
|
|
|
140
140
|
$ my-cli --help
|
|
141
|
-
|
|
141
|
+
greet
|
|
142
142
|
|
|
143
143
|
A CLI tool that displays greetings
|
|
144
144
|
|
|
145
|
+
Usage: greet [options] <name>
|
|
146
|
+
|
|
145
147
|
Arguments:
|
|
146
|
-
name
|
|
148
|
+
<name> Name of the person to greet
|
|
147
149
|
|
|
148
150
|
Options:
|
|
149
|
-
-
|
|
150
|
-
-
|
|
151
|
-
|
|
152
|
-
-
|
|
153
|
-
|
|
151
|
+
-h, --help Show help
|
|
152
|
+
-H, --help-all Show help with all subcommand options
|
|
153
|
+
--help-json Show help as JSON
|
|
154
|
+
-g, --greeting <GREETING> Greeting phrase (default: "Hello")
|
|
155
|
+
-l, --loud Output in uppercase (default: false)
|
|
154
156
|
```
|
|
155
157
|
|
|
156
158
|
Every command also accepts `--help-json`, which prints the same information as a single JSON object instead of formatted text — useful for tools that consume a CLI's help programmatically (e.g. generating docs or another UI) rather than parsing `--help`'s output:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "politty",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.1",
|
|
4
4
|
"description": "A lightweight CLI framework inspired by citty with zod v4 registry integration for type-safe metadata management",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"argument-parser",
|
|
@@ -67,14 +67,14 @@
|
|
|
67
67
|
}
|
|
68
68
|
},
|
|
69
69
|
"dependencies": {
|
|
70
|
-
"@politty/zod": "^0.3.
|
|
70
|
+
"@politty/zod": "^0.3.1"
|
|
71
71
|
},
|
|
72
72
|
"devDependencies": {
|
|
73
|
-
"@types/node": "25.9.
|
|
73
|
+
"@types/node": "25.9.7",
|
|
74
74
|
"@typescript/native-preview": "7.0.0-dev.20260707.2",
|
|
75
75
|
"tsdown": "0.23.0",
|
|
76
76
|
"typescript": "7.0.2",
|
|
77
|
-
"zod": "4.5
|
|
77
|
+
"zod": "4.6.5"
|
|
78
78
|
},
|
|
79
79
|
"peerDependencies": {
|
|
80
80
|
"@clack/prompts": "^0.10.0 || ^0.11.0 || ^1.0.0",
|