summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorVaxry <43317083+vaxerski@users.noreply.github.com>2025-12-04 18:00:15 +0000
committerGitHub <noreply@github.com>2025-12-04 18:00:15 +0000
commit9cd070fd3125cb5ec963f1271d5d6fff1231181f (patch)
treeb210e61ed0faab7d927f55ea82bcf3ca2a9d0f8b /src/main.cpp
parentd9657a95cb6706860332ff47dad444a96bcc874a (diff)
hyprpm: check for abi strings in headersValid (#12504)
--------- Co-authored-by: Virt <41426325+VirtCode@users.noreply.github.com>
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 2574d822..3e21c965 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -25,7 +25,7 @@ using namespace Hyprutils::Memory;
static void help() {
std::println("usage: Hyprland [arg [...]].\n");
- std::println(R"(Arguments:
+ std::println(R"#(Arguments:
--help -h - Show this message again
--config FILE -c FILE - Specify config file to use
--socket NAME - Sets the Wayland socket name (for Wayland socket handover)
@@ -33,7 +33,8 @@ static void help() {
--systeminfo - Prints system infos
--i-am-really-stupid - Omits root user privileges check (why would you do that?)
--verify-config - Do not run Hyprland, only print if the config has any errors
- --version -v - Print this binary's version)");
+ --version -v - Print this binary's version
+ --version-json - Print this binary's version as json)#");
}
static void reapZombieChildrenAutomatically() {
@@ -142,6 +143,9 @@ int main(int argc, char** argv) {
} else if (value == "-v" || value == "--version") {
std::println("{}", versionRequest(eHyprCtlOutputFormat::FORMAT_NORMAL, ""));
return 0;
+ } else if (value == "--version-json") {
+ std::println("{}", versionRequest(eHyprCtlOutputFormat::FORMAT_JSON, ""));
+ return 0;
} else if (value == "--systeminfo") {
std::println("{}", systemInfoRequest(eHyprCtlOutputFormat::FORMAT_NORMAL, ""));
return 0;