fix: correctly parse negative boolean flags

This commit is contained in:
Henrique Dias
2025-06-25 17:24:06 +02:00
parent f46641b038
commit 221451a517
3 changed files with 60 additions and 30 deletions

View File

@@ -86,7 +86,7 @@ func python(fn pythonFunc, cfg pythonConfig) cobraFunc {
return func(cmd *cobra.Command, args []string) {
data := pythonData{hadDB: true}
path := getParam(cmd.Flags(), "database")
path := getStringParam(cmd.Flags(), "database")
absPath, err := filepath.Abs(path)
if err != nil {
panic(err)