From: Zbigniew Jędrzejewski-Szmek Date: Tue, 24 Mar 2026 08:49:24 +0000 (+0100) Subject: options: add common option macros for --no-ask-password, --host, --machine X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1e1143aba06f4a520561509845cfd3d5ca5866d9;p=thirdparty%2Fsystemd.git options: add common option macros for --no-ask-password, --host, --machine Co-developed-by: Claude --- diff --git a/src/shared/options.h b/src/shared/options.h index b86a728794d..6baec72b4fe 100644 --- a/src/shared/options.h +++ b/src/shared/options.h @@ -60,6 +60,12 @@ typedef struct Option { OPTION_LONG("cat-config", NULL, "Show configuration files") #define OPTION_COMMON_TLDR \ OPTION_LONG("tldr", NULL, "Show non-comment parts of configuration") +#define OPTION_COMMON_NO_ASK_PASSWORD \ + OPTION_LONG("no-ask-password", NULL, "Do not prompt for password") +#define OPTION_COMMON_HOST \ + OPTION('H', "host", "[USER@]HOST", "Operate on remote host") +#define OPTION_COMMON_MACHINE \ + OPTION('M', "machine", "CONTAINER", "Operate on local container") #define OPTION_COMMON_JSON \ OPTION_LONG("json", "FORMAT", "Generate JSON output (pretty, short, or off)")