projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
21cffed
)
portablectl: support 'help' parameter on --copy=
author
Lennart Poettering
<lennart@poettering.net>
Thu, 31 May 2018 10:06:12 +0000
(12:06 +0200)
committer
Lennart Poettering
<lennart@poettering.net>
Thu, 31 May 2018 10:06:12 +0000
(12:06 +0200)
src/portable/portablectl.c
patch
|
blob
|
history
diff --git
a/src/portable/portablectl.c
b/src/portable/portablectl.c
index
5c56bce
..
04a2612
100644
(file)
--- 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;
}