@@ -59,8 +59,8 @@ func addServiceFlags(cmd *cobra.Command) {
5959 if f .Lookup ("buildpack" ) == nil {
6060 f .String ("buildpack" , "railpack" , "Build strategy: railpack, dockerfile, static" )
6161 }
62- if f .Lookup ("timeout" ) == nil {
63- f .Int ("timeout" , 0 , "Auto-destroy after N seconds from deploy completion (0=persistent, max 86400)" )
62+ if f .Lookup ("destroy- timeout-seconds " ) == nil {
63+ f .Int ("destroy- timeout-seconds " , 0 , "Auto-destroy after N seconds from deploy completion (0=persistent, max 86400)" )
6464 }
6565}
6666
@@ -203,9 +203,9 @@ func runCreate(cmd *cobra.Command, client graphql.Client, name string) {
203203 region , _ := cmd .Flags ().GetString ("region" )
204204 input .Regions = []string {region }
205205 }
206- if cmd .Flags ().Changed ("timeout" ) {
207- v , _ := cmd .Flags ().GetInt ("timeout" )
208- input .TimeoutDestroySeconds = & v
206+ if cmd .Flags ().Changed ("destroy- timeout-seconds " ) {
207+ v , _ := cmd .Flags ().GetInt ("destroy- timeout-seconds " )
208+ input .DestroyTimeoutSeconds = & v
209209 }
210210
211211 input .EnvVars = collectEnvVars (cmd )
@@ -291,9 +291,9 @@ func runUpdate(cmd *cobra.Command, client graphql.Client, name string) {
291291 v , _ := cmd .Flags ().GetInt ("port" )
292292 input .Ports = singlePublicHTTPPort (v )
293293 }
294- if cmd .Flags ().Changed ("timeout" ) {
295- v , _ := cmd .Flags ().GetInt ("timeout" )
296- input .TimeoutDestroySeconds = & v
294+ if cmd .Flags ().Changed ("destroy- timeout-seconds " ) {
295+ v , _ := cmd .Flags ().GetInt ("destroy- timeout-seconds " )
296+ input .DestroyTimeoutSeconds = & v
297297 }
298298
299299 input .EnvVars = collectEnvVars (cmd )
0 commit comments