From: Lennart Poettering Date: Thu, 31 May 2018 10:06:12 +0000 (+0200) Subject: portablectl: support 'help' parameter on --copy= X-Git-Tag: v239~173^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f524522bde1a29ec1589db95a787a89444617d04;p=thirdparty%2Fsystemd.git portablectl: support 'help' parameter on --copy= --- diff --git a/src/portable/portablectl.c b/src/portable/portablectl.c index 5c56bce2b87..04a261297ce 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; }