Skip to content

Commit 9cb4908

Browse files
committed
fix[closes #482]: apx 3.0.x errors out when calling --help or help
1 parent 4927bae commit 9cb4908

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

settings/config.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ package settings
1010
*/
1111

1212
import (
13-
"fmt"
1413
"os"
1514
"os/exec"
1615
"path/filepath"
@@ -37,10 +36,10 @@ type Config struct {
3736
func GetApxDefaultConfig() (*Config, error) {
3837
config, err := conf.NewBuilder[Config]("apx").
3938
WithType("json").
39+
WithOptional(true).
4040
Build()
4141
if err != nil {
42-
fmt.Printf("Unable to read config file: \n\t%s\n", err)
43-
os.Exit(1)
42+
return nil, err
4443
}
4544

4645
distroboxPath := config.DistroboxPath

0 commit comments

Comments
 (0)