func NewFlags(
	lockfileName string,
	ignoreMissingDigests bool,
	updateExistingDigests bool,
	excludeTags bool,
) (*Flags, error) {
	if err := validateLockfileName(lockfileName); err != nil {
		return nil, err
	}
	return &Flags{
		LockfileName:          lockfileName,
		IgnoreMissingDigests:  ignoreMissingDigests,
		UpdateExistingDigests: updateExistingDigests,
		ExcludeTags:           excludeTags,
	}, nil
}
NewFlags returns Flags for Dockerfiles, Composefiles, and Kubernetesfiles,
after validating their fields.

lockfileName may not contain slashes.
package verify
import (
	"fmt"
	"path/filepath"
	"strings"
)
type Flags struct {
	LockfileName          string
	IgnoreMissingDigests  bool
	UpdateExistingDigests bool
	ExcludeTags           bool
}