We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d60b964 commit 8addc50Copy full SHA for 8addc50
cmd/adder/main.go
@@ -44,6 +44,11 @@ func slogPrintf(format string, v ...any) {
44
func main() {
45
cfg := config.GetConfig()
46
47
+ if os.Args == nil {
48
+ fmt.Println("Failed to detect arguments, aborting")
49
+ os.Exit(1)
50
+ }
51
+
52
if err := cfg.ParseCmdlineArgs(programName, os.Args[1:]); err != nil {
53
fmt.Printf("Failed to parse commandline: %s\n", err)
54
os.Exit(1)
0 commit comments