Closed SR-G closed 3 years ago
At the moment I just do:
./sol configfilename.json
It's not ideal, but was easier to implement than relying on another package to handle command line argument parsing.
var fullConfigurationFileName string
if (len(os.Args) >= 1) {
fullConfigurationFileName = dir + string(os.PathSeparator) + os.Args[1]
} else {
fullConfigurationFileName = dir + string(os.PathSeparator) + configurationFileName
}
Implemented in 1.0.6-SNAPSHOT
Add a --config parameter. See if it is worth switching to the regular spf13/cobra framework.