diff options
author | Jakub Guzik <jakubmguzik@gmail.com> | 2021-02-22 14:47:08 +0100 |
---|---|---|
committer | Jakub Guzik <jakubmguzik@gmail.com> | 2021-02-22 14:48:33 +0100 |
commit | d2f3098c6f9068edfe4012387cef2e6d140ef20a (patch) | |
tree | 61e731bf1909984463adc2f845ac2ddcd7671328 /cmd/podman | |
parent | 4aaaa6c1df3a1c90a930b97552bcc970d7d99dd4 (diff) | |
download | podman-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/podman')
-rw-r--r-- | cmd/podman/generate/systemd.go | 1 |
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") |