Skip to content

Answer --help and --version in every program - #49

Merged
Maik-0000FF merged 11 commits into
devfrom
version-option
Sep 7, 2026
Merged

Answer --help and --version in every program#49
Maik-0000FF merged 11 commits into
devfrom
version-option

Conversation

@Maik-0000FF

Copy link
Copy Markdown
Owner

Closes #48.

The editor built no parser and handed a second start over before looking at any argument, so bindpeek-editor --version raised the running window instead of answering. The keyboard service read no arguments at all.

  • New src/CommandLine.{h,cpp}: application name and version, the parser, and the check for an invocation that needs no display. Compiled into both Qt programs.
  • The program name now comes from the build per target, like the version already did. No source file spells it out.
  • The keyboard service answers both options before it opens a descriptor, and its messages read the same two values.
  • New test measuring the check against the parser it runs ahead of.

@Maik-0000FF
Maik-0000FF merged commit 48c0a16 into dev Sep 7, 2026
12 checks passed
@Maik-0000FF
Maik-0000FF deleted the version-option branch September 7, 2026 15:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant