Fixes for launcher

- Do not raise error when no config is passed
- Renamed module to 'launch'
This commit is contained in:
daijro 2024-08-05 20:46:54 -05:00
parent bf245006b2
commit 3e198c78f1
2 changed files with 3 additions and 3 deletions

View file

@ -1,4 +1,4 @@
module camoufox-launcher
module launch
go 1.22.5

View file

@ -47,9 +47,9 @@ func parseArgs(args []string) (string, []string) {
}
}
// If no config data is provided, fallback to an empty object
if configPath == "" {
fmt.Println("Usage: ./launch --config <config.json> [...additional args]")
os.Exit(1)
configPath = "{}"
}
return configPath, remainingArgs