File: help.go

package info (click to toggle)
golang-doozer 0.0~git20130909-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 224 kB
  • ctags: 283
  • sloc: makefile: 11
file content (13 lines) | stat: -rw-r--r-- 278 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
package main

import "fmt"

func init() {
	cmds["help"] = cmd{help, "<command>", "provide detailed help on a command"}
}

func help(command string) {
	c := cmds[command]
	fmt.Printf("Use: %s [options] %s [options] %s\n\n", selfName, command, c.a)
	fmt.Print(cmdHelp[command])
}