From f524522bde1a29ec1589db95a787a89444617d04 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 31 May 2018 12:06:12 +0200 Subject: [PATCH] portablectl: support 'help' parameter on --copy= --- src/portable/portablectl.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/portable/portablectl.c b/src/portable/portablectl.c index 5c56bce2b8..04a261297c 100644 --- a/src/portable/portablectl.c +++ b/src/portable/portablectl.c @@ -900,7 +900,12 @@ static int parse_argv(int argc, char *argv[]) { arg_copy_mode = NULL; else if (STR_IN_SET(optarg, "copy", "symlink")) arg_copy_mode = optarg; - else { + else if (streq(optarg, "help")) { + puts("auto\n" + "copy\n" + "symlink"); + return 0; + } else { log_error("Failed to parse --copy= argument: %s", optarg); return -EINVAL; }