return log_error_errno(arg_class, "Failed to parse --class= argument: %s", opts.arg);
break;
- OPTION_LONG("system", NULL, "Operate in per-system mode"):
+ OPTION_COMMON_SYSTEM:
arg_runtime_scope = RUNTIME_SCOPE_SYSTEM;
break;
- OPTION_LONG("user", NULL, "Operate in per-user mode"):
+ OPTION_COMMON_USER:
arg_runtime_scope = RUNTIME_SCOPE_USER;
break;
}
return log_error_errno(arg_class, "Failed to parse --class= argument: %s", opts.arg);
break;
- OPTION_LONG("system", NULL, "Operate in per-system mode"):
+ OPTION_COMMON_SYSTEM:
arg_runtime_scope = RUNTIME_SCOPE_SYSTEM;
break;
- OPTION_LONG("user", NULL, "Operate in per-user mode"):
+ OPTION_COMMON_USER:
arg_runtime_scope = RUNTIME_SCOPE_USER;
break;
}
return log_error_errno(arg_class, "Failed to parse --class= argument: %s", opts.arg);
break;
- OPTION_LONG("system", NULL, "Operate in per-system mode"):
+ OPTION_COMMON_SYSTEM:
arg_runtime_scope = RUNTIME_SCOPE_SYSTEM;
break;
- OPTION_LONG("user", NULL, "Operate in per-user mode"):
+ OPTION_COMMON_USER:
arg_runtime_scope = RUNTIME_SCOPE_USER;
break;
}
auto_keep_download = false;
break;
- OPTION_LONG("system", NULL, "Operate in per-system mode"):
+ OPTION_COMMON_SYSTEM:
arg_runtime_scope = RUNTIME_SCOPE_SYSTEM;
break;
- OPTION_LONG("user", NULL, "Operate in per-user mode"):
+ OPTION_COMMON_USER:
arg_runtime_scope = RUNTIME_SCOPE_USER;
break;
}
#define OPTION_COMMON_MACHINE \
OPTION('M', "machine", "CONTAINER", "Operate on local container")
+#define OPTION_COMMON_SYSTEM \
+ OPTION_LONG("system", NULL, "Operate in system mode")
+
+#define OPTION_COMMON_USER \
+ OPTION_LONG("user", NULL, "Operate in per-user mode")
+
#define OPTION_COMMON_JSON \
OPTION_LONG("json", "FORMAT", "Generate JSON output (pretty, short, or off)")
OPTION_COMMON_VERSION:
return version();
- OPTION_LONG("system", NULL, "Operate in system mode"):
+ OPTION_COMMON_SYSTEM:
arg_runtime_scope = RUNTIME_SCOPE_SYSTEM;
break;
- OPTION_LONG("user", NULL, "Operate in user mode"):
+ OPTION_COMMON_USER:
arg_runtime_scope = RUNTIME_SCOPE_USER;
break;
}
arg_ask_password = false;
break;
- OPTION_LONG("system", NULL, "Operate in system mode"):
+ OPTION_COMMON_SYSTEM:
arg_runtime_scope = RUNTIME_SCOPE_SYSTEM;
break;
- OPTION_LONG("user", NULL, "Operate in user mode"):
+ OPTION_COMMON_USER:
arg_runtime_scope = RUNTIME_SCOPE_USER;
break;
}