mirror of
https://forge.fsky.io/oneflux/omegafox.git
synced 2026-02-10 14:52:03 -08:00
Fixes for launcher
- Do not raise error when no config is passed - Renamed module to 'launch'
This commit is contained in:
parent
bf245006b2
commit
3e198c78f1
2 changed files with 3 additions and 3 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
module camoufox-launcher
|
module launch
|
||||||
|
|
||||||
go 1.22.5
|
go 1.22.5
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -47,9 +47,9 @@ func parseArgs(args []string) (string, []string) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// If no config data is provided, fallback to an empty object
|
||||||
if configPath == "" {
|
if configPath == "" {
|
||||||
fmt.Println("Usage: ./launch --config <config.json> [...additional args]")
|
configPath = "{}"
|
||||||
os.Exit(1)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return configPath, remainingArgs
|
return configPath, remainingArgs
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue