mirror of
https://github.com/wizbright/waybox.git
synced 2025-10-29 05:40:20 -04:00
Name as well as version for --version
This commit is contained in:
parent
555b78e9ec
commit
97d08498e9
2 changed files with 3 additions and 2 deletions
|
|
@ -14,7 +14,8 @@ project(
|
|||
add_project_arguments(
|
||||
'-Wno-unused-parameter',
|
||||
'-DWLR_USE_UNSTABLE',
|
||||
'-DVERSION="' + meson.project_version() + '"',
|
||||
'-DPACKAGE_NAME="' + meson.project_name() + '"',
|
||||
'-DPACKAGE_VERSION="' + meson.project_version() + '"',
|
||||
language: 'c')
|
||||
|
||||
cc = meson.get_compiler('c')
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ int main(int argc, char **argv) {
|
|||
} else if ((!strcmp("--startup", argv[i]) || !strcmp("-s", argv[i])) && i < argc) {
|
||||
startup_cmd = argv[i + 1];
|
||||
} else if (!strcmp("--version", argv[i]) || !strcmp("-V", argv[i])) {
|
||||
printf(VERSION "\n");
|
||||
printf(PACKAGE_NAME " " PACKAGE_VERSION "\n");
|
||||
return 0;
|
||||
} else if (argv[i][0] == '-') {
|
||||
printf("Usage: %s [--debug] [--exit] [--help] [--startup CMD] [--version]\n", argv[0]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue