Skip to content

Comments

conf: Add --version/-V command-line option#243

Merged
kdj0c merged 2 commits intokmscon:mainfrom
jtollet:add-version-option
Jan 26, 2026
Merged

conf: Add --version/-V command-line option#243
kdj0c merged 2 commits intokmscon:mainfrom
jtollet:add-version-option

Conversation

@jtollet
Copy link
Contributor

@jtollet jtollet commented Jan 23, 2026

Add a new --version option (with short form -V) to display version information. The version is extracted from git describe via the existing shl_git_head mechanism.

When combined with --verbose/-v, additional build information is shown:

  • Compilation date and time
  • Enabled build options (DRM 2D/3D, FBDEV, Pango support)

This provides users with an easy way to verify the installed version and build configuration.

Changes

  • Added --version/-V command-line option
  • Added version field to kmscon_conf_t structure
  • Updated meson build to use git describe --tags to properly detect lightweight tags

Examples

Basic usage:

$ kmscon --version
kmscon version v9.3.0-1-gd4a3e63

With verbose mode:

$ kmscon -vV
kmscon version v9.3.0-1-gd4a3e63
Compiled: Jan 23 2026 18:43:49
Build options:
  - DRM 2D support: enabled
  - DRM 3D support: enabled
  - FBDEV support: enabled
  - Pango font support: enabled

@jtollet jtollet force-pushed the add-version-option branch 2 times, most recently from 75d4ae3 to d4a3e63 Compare January 23, 2026 17:52
@kdj0c
Copy link
Contributor

kdj0c commented Jan 23, 2026

Thanks, it looks nice. I think you just need to update the man page docs/man/kmscon.1.xml.in accordingly.
(It doesn't make sense to update the kmscon.conf man page, or the kmscon.conf.example, as adding Version here would be useless).

@jtollet
Copy link
Contributor Author

jtollet commented Jan 24, 2026

Thanks, it looks nice. I think you just need to update the man page docs/man/kmscon.1.xml.in accordingly. (It doesn't make sense to update the kmscon.conf man page, or the kmscon.conf.example, as adding Version here would be useless).

Done

jtollet and others added 2 commits January 25, 2026 22:45
Add a new --version option (with short form -V) to display version
information. The version is extracted from git describe via the existing
shl_git_head mechanism.

When combined with --verbose/-v, additional build information is shown:
  - Compilation date and time
  - Enabled build options (DRM 2D/3D, FBDEV, Pango support)

This provides users with an easy way to verify the installed version
and build configuration.

Signed-off-by: Jerome Tollet <[email protected]>
Add documentation for the --version/-V command-line option in the
kmscon manual page. The documentation explains that this option
displays version information and, when combined with --verbose,
shows additional build information.

Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
@jtollet jtollet force-pushed the add-version-option branch from 22d2607 to a166cf1 Compare January 25, 2026 21:48
@kdj0c kdj0c merged commit 8314252 into kmscon:main Jan 26, 2026
2 checks passed
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.

2 participants