Rename conf-dir to config-folder to be consistent with our naming convention regarding folders v/s directories
This commit is contained in:
@@ -32,7 +32,7 @@ var flags = []cli.Flag{}
|
||||
|
||||
var (
|
||||
configFlag = cli.StringFlag{
|
||||
Name: "conf-dir, C",
|
||||
Name: "config-folder, C",
|
||||
Value: mustGetMcConfigDir(),
|
||||
Usage: "Path to configuration folder",
|
||||
}
|
||||
|
||||
@@ -74,7 +74,7 @@ func getSystemData() map[string]string {
|
||||
}
|
||||
|
||||
func registerBefore(ctx *cli.Context) error {
|
||||
setMcConfigDir(ctx.GlobalString("conf-dir"))
|
||||
setMcConfigDir(ctx.GlobalString("config-folder"))
|
||||
globalQuietFlag = ctx.GlobalBool("quiet")
|
||||
globalMimicFlag = ctx.GlobalBool("mimic")
|
||||
globalDebugFlag = ctx.GlobalBool("debug")
|
||||
@@ -119,7 +119,7 @@ func registerApp() *cli.App {
|
||||
// register all the flags
|
||||
registerFlag(configFlag) // path to config folder
|
||||
registerFlag(quietFlag) // suppress console output
|
||||
registerFlag(mimicFlag) // OS toolchain mimic
|
||||
registerFlag(mimicFlag) // OS toolchain mimic
|
||||
registerFlag(themeFlag) // console theme flag
|
||||
registerFlag(jsonFlag) // json formatted output
|
||||
registerFlag(debugFlag) // enable debugging output
|
||||
|
||||
Reference in New Issue
Block a user