From f360ee0ab569ab05acd80ba1f5d663b99eb98d02 Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Sun, 12 Jul 2015 21:37:57 -0700 Subject: [PATCH] Add mkdonut examples --- cmd/mkdonut/main.go | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/cmd/mkdonut/main.go b/cmd/mkdonut/main.go index 4572d9eb2..27830e46c 100644 --- a/cmd/mkdonut/main.go +++ b/cmd/mkdonut/main.go @@ -147,9 +147,15 @@ func main() { USAGE: {{.Name}} {{if .Flags}}[global flags] {{end}}command{{if .Flags}} [command flags]{{end}} [arguments...] -COMMANDS: - {{range .Commands}}{{join .Names ", "}}{{ "\t" }}{{.Usage}} - {{end}}{{if .Flags}} +EXAMPLES: + 1. Create a donut with four disks + $ {{.Name}} donuttest /mnt/export1 /mnt/export2 /mnt/export3 /mnt/export4 + + 2. Create a donut with sixteen disks + $ {{.Name}} donut-16 /mnt/export1 /mnt/export2 /mnt/export3 /mnt/export4 /mnt/export5 \ + /mnt/export6 /mnt/export7 /mnt/export8 /mnt/export9 /mnt/export10 /mnt/export11 \ + /mnt/export12 /mnt/export13 /mnt/export14 /mnt/export15 /mnt/export16 +{{if .Flags}} GLOBAL FLAGS: {{range .Flags}}{{.}} {{end}}{{end}}