Skip to content
This repository was archived by the owner on Feb 27, 2018. It is now read-only.

Commit 8a9e9c9

Browse files
committed
Aliased destroy to delete
Docker-DCO-1.1-Signed-off-by: rdsubhas <rdsubhas@gmail.com> (github: rdsubhas)
1 parent 46f10c6 commit 8a9e9c9

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

config.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ func config() (*flag.FlagSet, error) {
190190
}
191191

192192
func usageShort() {
193-
errf("Usage: %s [<options>] {help|init|up|ssh|save|down|poweroff|reset|restart|config|status|info|ip|delete|download|version} [<args>]\n", os.Args[0])
193+
errf("Usage: %s [<options>] {help|init|up|ssh|save|down|poweroff|reset|restart|config|status|info|ip|delete|destroy|download|version} [<args>]\n", os.Args[0])
194194

195195
}
196196

@@ -209,7 +209,7 @@ Commands:
209209
restart Gracefully reboot the VM.
210210
poweroff Forcefully power off the VM (might corrupt disk image).
211211
reset Forcefully power cycle the VM (might corrupt disk image).
212-
delete Delete boot2docker VM and its disk image.
212+
delete|destroy Delete boot2docker VM and its disk image.
213213
config|cfg Show selected profile file settings.
214214
info Display detailed information of VM.
215215
ip Display the IP address of the VM's Host-only network.

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ func run() int {
4545
return cmdRestart()
4646
case "reset":
4747
return cmdReset()
48-
case "delete":
48+
case "delete", "destroy":
4949
return cmdDelete()
5050
case "info":
5151
return cmdInfo()

0 commit comments

Comments
 (0)