summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorJakub Guzik <jakubmguzik@gmail.com>2021-02-22 14:47:08 +0100
committerJakub Guzik <jakubmguzik@gmail.com>2021-02-22 14:48:33 +0100
commitd2f3098c6f9068edfe4012387cef2e6d140ef20a (patch)
tree61e731bf1909984463adc2f845ac2ddcd7671328 /cmd
parent4aaaa6c1df3a1c90a930b97552bcc970d7d99dd4 (diff)
downloadpodman-d2f3098c6f9068edfe4012387cef2e6d140ef20a.tar.gz
podman-d2f3098c6f9068edfe4012387cef2e6d140ef20a.tar.bz2
podman-d2f3098c6f9068edfe4012387cef2e6d140ef20a.zip
--no-header flag implementation for generate systemd
Signed-off-by: Jakub Guzik <jakubmguzik@gmail.com>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/podman/generate/systemd.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/podman/generate/systemd.go b/cmd/podman/generate/systemd.go
index 7b2d9ebb7..54ee1f051 100644
--- a/cmd/podman/generate/systemd.go
+++ b/cmd/podman/generate/systemd.go
@@ -52,6 +52,7 @@ func init() {
flags.UintVarP(&systemdTimeout, timeFlagName, "t", containerConfig.Engine.StopTimeout, "Stop timeout override")
_ = systemdCmd.RegisterFlagCompletionFunc(timeFlagName, completion.AutocompleteNone)
flags.BoolVarP(&systemdOptions.New, "new", "", false, "Create a new container instead of starting an existing one")
+ flags.BoolVarP(&systemdOptions.NoHeader, "no-header", "", false, "Skip header generation")
containerPrefixFlagName := "container-prefix"
flags.StringVar(&systemdOptions.ContainerPrefix, containerPrefixFlagName, "container", "Systemd unit name prefix for containers")