diff --git a/internal/config/config.go b/internal/config/config.go index 9cbcee0..a6258d1 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -2,6 +2,8 @@ package config import ( "flag" + "fmt" + "os" ) // Config represents user supplied program input @@ -30,4 +32,11 @@ func (c *Config) LoadAndValidate() { flag.BoolVar(&c.IsProofWriter, "p", true, "Disable proof wrtier (default: Enabled)") flag.Parse() + + // Check if mandatory flags are set + if c.InputPath == "" { + fmt.Println("Error: -i flag is mandatory") + flag.Usage() + os.Exit(1) + } }