code: func (m *Main) Run(args ...string) error {
  	// Require a command at the beginning.
  	if len(args) == 0 || strings.HasPrefix(args[0], "-") {
  		fmt.Fprintln(m.Stderr, m.Usage())
  		return ErrUsage
  	}
  
  	// Execute command.
  	switch args[0] {
  	case "help":
  		fmt.Fprintln(m.Stderr, m.Usage())
  		return ErrUsage
  	case "bench":
  		return newBenchCommand(m).Run(args[1:]...)
  	case "check":
  		return newCheckCommand(m).Run(args[1:]...)
  	case "compact":
  		return newCompactCommand(m).Run(args[1:]...)
  	case "dump":
  		return newDumpCommand(m).Run(args[1:]...)
  	case "info":
  		return newInfoCommand(m).Run(args[1:]...)
  	case "page":
  		return newPageCommand(m).Run(args[1:]...)
  	case "pages":
  		return newPagesCommand(m).Run(args[1:]...)
  	case "stats":
  		return newStatsCommand(m).Run(args[1:]...)
  	default:
  		return ErrUnknownCommand
  	}
  }
docs: // Run executes the program.