(flags *pflag.FlagSet)
| 672 | } |
| 673 | |
| 674 | func (options *serviceOptions) ToStopGracePeriod(flags *pflag.FlagSet) *time.Duration { |
| 675 | if flags.Changed(flagStopGracePeriod) { |
| 676 | return options.stopGrace.Value() |
| 677 | } |
| 678 | return nil |
| 679 | } |
| 680 | |
| 681 | // makeEnv gets the environment variables from the command line options and |
| 682 | // returns a slice of strings to use in the service spec when doing ToService |