package verbose

import (
	"fmt"
	"os"
)

// Enabled is set by the root command's --verbose flag.
var Enabled bool

// Printf prints to stderr if verbose mode is enabled.
func Printf(format string, args ...any) {
	if Enabled {
		fmt.Fprintf(os.Stderr, "arca: "+format+"\n", args...)
	}
}
