Pass through optional-disabled on CF import (fixes #93)

This commit is contained in:
comp500
2022-03-07 18:22:29 +00:00
parent 7c387f6c83
commit 3fb350f244
5 changed files with 22 additions and 10 deletions

View File

@@ -262,7 +262,7 @@ var importCmd = &cobra.Command{
continue
}
err = createModFile(modInfoValue, modFileInfoValue, &index)
err = createModFile(modInfoValue, modFileInfoValue, &index, v.OptionalDisabled)
if err != nil {
fmt.Printf("Failed to save mod \"%s\": %s\n", modInfoValue.Name, err)
os.Exit(1)