Commit 820ad97
authored
fix/feat: display version at start of all CLI contexts with empty line (#30)
* feat: display version at start of all CLI executions
- Add version output to normal file processing (not just --version/--help)
- Format: 'bbl_parser 0.9.0 <git_sha> (<date>)' via vergen
- Prints only when processing files (after help early exit)
- No duplicate printing: --version/--help handled by clap separately
- Resolves issue #29
* feat: display version at start of all CLI contexts with empty line
- Print version before get_matches() for all contexts
- Version shows for: -V, --version, --help, normal execution, no params
- Format: 'bbl_parser <semver> <sha> (<date>)' via vergen
- Empty line separates version from help/output
- Add custom -V/--version args with exclusive flag
- Early exit if only --version/-V requested
- Simple approach: print once at start, no duplication
- Resolves issue #291 parent 416808b commit 820ad97
1 file changed
Lines changed: 17 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
262 | 262 | | |
263 | 263 | | |
264 | 264 | | |
265 | | - | |
266 | 265 | | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
267 | 274 | | |
268 | 275 | | |
269 | 276 | | |
| |||
310 | 317 | | |
311 | 318 | | |
312 | 319 | | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
313 | 324 | | |
314 | 325 | | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
315 | 331 | | |
316 | 332 | | |
317 | 333 | | |
| |||
0 commit comments