code: func (cmd *InfoCommand) Run(args ...string) error {
  	// Parse flags.
  	fs := flag.NewFlagSet("", flag.ContinueOnError)
  	help := fs.Bool("h", false, "")
  	if err := fs.Parse(args); err != nil {
  		return err
  	} else if *help {
  		fmt.Fprintln(cmd.Stderr, cmd.Usage())
  		return ErrUsage
  	}
  
  	// Require database path.
  	path := fs.Arg(0)
  	if path == "" {
  		return ErrPathRequired
  	} else if _, err := os.Stat(path); os.IsNotExist(err) {
  		return ErrFileNotFound
  	}
  
  	// Open the database.
  	db, err := bolt.Open(path, 0666, nil)
  	if err != nil {
  		return err
  	}
  	defer db.Close()
  
  	// Print basic database info.
  	info := db.Info()
  	fmt.Fprintf(cmd.Stdout, "Page Size: %d\n", info.PageSize)
  
  	return nil
  }
docs: // Run executes the command.