diff options
author | Mike Yuan <me@yhndnzj.com> | 2024-07-05 21:34:07 +0200 |
---|---|---|
committer | Mike Yuan <me@yhndnzj.com> | 2024-08-12 16:23:23 +0200 |
commit | 119cba78353e5d8337bfde0a66a0dcd707072e8b (patch) | |
tree | d797c82b835c57b2b98a05c93facc492f1ee58e6 /src/systemctl | |
parent | edit-util: several cleanups for --stdin handling (diff) | |
download | systemd-119cba78353e5d8337bfde0a66a0dcd707072e8b.tar.xz systemd-119cba78353e5d8337bfde0a66a0dcd707072e8b.zip |
networkctl: support edit --stdin
Diffstat (limited to 'src/systemctl')
-rw-r--r-- | src/systemctl/systemctl-edit.c | 2 | ||||
-rw-r--r-- | src/systemctl/systemctl.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/systemctl/systemctl-edit.c b/src/systemctl/systemctl-edit.c index 15398f8364..b7bd3851fd 100644 --- a/src/systemctl/systemctl-edit.c +++ b/src/systemctl/systemctl-edit.c @@ -323,7 +323,7 @@ int verb_edit(int argc, char *argv[], void *userdata) { int r; if (!on_tty() && !arg_stdin) - return log_error_errno(SYNTHETIC_ERRNO(EINVAL), "Cannot edit units if not on a tty."); + return log_error_errno(SYNTHETIC_ERRNO(EINVAL), "Cannot edit units interactively if not on a tty."); if (arg_transport != BUS_TRANSPORT_LOCAL) return log_error_errno(SYNTHETIC_ERRNO(EINVAL), "Cannot edit units remotely."); diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c index 1e36455cf2..912c1d8301 100644 --- a/src/systemctl/systemctl.c +++ b/src/systemctl/systemctl.c @@ -347,7 +347,7 @@ static int systemctl_help(void) { " --drop-in=NAME Edit unit files using the specified drop-in file name\n" " --when=TIME Schedule halt/power-off/reboot/kexec action after\n" " a certain timestamp\n" - " --stdin Read contents of edited file from stdin\n" + " --stdin Read new contents of edited file from stdin\n" "\nSee the %2$s for details.\n", program_invocation_short_name, link, |