From a2f1369d1812f8b1eb0c8d6599f759fa30ece892 Mon Sep 17 00:00:00 2001 From: Raito Bezarius Date: Mon, 2 Mar 2026 14:20:51 +0100 Subject: [PATCH] libmain: drop categories for dry-run and json args 36c4d6f59247826dde32ad2e6b5a9471a9a1c911 introduced it commented. Zero explanation why. horrors suggested to drop it entirely because it hide the options in categories but they are pretty common and we should make as much visible as possible. Change-Id: I09894b5ba0f2b2cce5869136914289fed034fce3 Signed-off-by: Raito Bezarius --- lix/libmain/common-args.hh | 3 --- 1 file changed, 3 deletions(-) diff --git a/lix/libmain/common-args.hh b/lix/libmain/common-args.hh index 1f6432b7b..0d388cd48 100644 --- a/lix/libmain/common-args.hh +++ b/lix/libmain/common-args.hh @@ -6,7 +6,6 @@ namespace nix { -//static constexpr auto commonArgsCategory = "Miscellaneous common options"; static constexpr auto loggingCategory = "Logging-related options"; static constexpr auto miscCategory = "Miscellaneous global options"; @@ -29,7 +28,6 @@ struct MixDryRun : virtual Args addFlag({ .longName = "dry-run", .description = "Show what this command would do without doing it.", - //.category = commonArgsCategory, .handler = {&dryRun, true}, }); } @@ -44,7 +42,6 @@ struct MixJSON : virtual Args addFlag({ .longName = "json", .description = "Produce output in JSON format, suitable for consumption by another program.", - //.category = commonArgsCategory, .handler = {&json, true}, }); }