code: func (cmd *DumpCommand) 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 and page id.
  	path := fs.Arg(0)
  	if path == "" {
  		return ErrPathRequired
  	} else if _, err := os.Stat(path); os.IsNotExist(err) {
  		return ErrFileNotFound
  	}
  
  	// Read page ids.
  	pageIDs, err := atois(fs.Args()[1:])
  	if err != nil {
  		return err
  	} else if len(pageIDs) == 0 {
  		return ErrPageIDRequired
  	}
  
  	// Open database to retrieve page size.
  	pageSize, err := ReadPageSize(path)
  	if err != nil {
  		return err
  	}
  
  	// Open database file handler.
  	f, err := os.Open(path)
  	if err != nil {
  		return err
  	}
  	defer func() { _ = f.Close() }()
  
  	// Print each page listed.
  	for i, pageID := range pageIDs {
  		// Print a separator.
  		if i > 0 {
  			fmt.Fprintln(cmd.Stdout, "===============================================")
  		}
  
  		// Print page to stdout.
  		if err := cmd.PrintPage(cmd.Stdout, f, pageID, pageSize); err != nil {
  			return err
  		}
  	}
  
  	return nil
  }
docs: // Run executes the command.