Breaking change --config-folder is now --config-dir (#2620)

This commit is contained in:
Harshavardhana
2018-12-05 14:10:36 -08:00
committed by kannappanr
parent a91204ea6f
commit f3eaa54a32
6 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -30,7 +30,7 @@ var commandsTree = trie.NewTrie()
// Collection of mc flags currently supported
var globalFlags = []cli.Flag{
cli.StringFlag{
Name: "config-folder, C",
Name: "config-dir, C",
Value: mustGetMcConfigDir(),
Usage: "path to configuration folder",
},
+1 -1
View File
@@ -215,7 +215,7 @@ func registerBefore(ctx *cli.Context) error {
checkGoVersion()
// Set the config directory.
setMcConfigDir(ctx.GlobalString("config-directory"))
setMcConfigDir(ctx.GlobalString("config-dir"))
// Migrate any old version of config / state files to newer format.
migrate()
+1 -1
View File
@@ -203,7 +203,7 @@ This option disables the color theme. It is useful for dumb terminals.
### Option [--quiet]
Quiet option suppress chatty console output.
### Option [--config-folder]
### Option [--config-dir]
Use this option to set a custom config path.
### Option [ --insecure]
+1 -1
View File
@@ -238,7 +238,7 @@ This option disables the color theme. It is useful for dumb terminals.
### Option [--quiet]
Quiet option suppress chatty console output.
### Option [--config-folder]
### Option [--config-dir]
Use this option to set a custom config path.
### Option [ --insecure]
+1 -1
View File
@@ -224,7 +224,7 @@ mc --json ls play
### 参数 [--quiet]
这个参数关闭控制台日志输出。
### 参数 [--config-folder]
### 参数 [--config-dir]
这个参数参数自定义的配置文件路径。
### 参数 [ --insecure]
+1 -1
View File
@@ -861,7 +861,7 @@ function __init__()
fi
mkdir -p "$MC_CONFIG_DIR"
MC_CMD=( "${MC}" --config-folder "$MC_CONFIG_DIR" --quiet --no-color )
MC_CMD=( "${MC}" --config-dir "$MC_CONFIG_DIR" --quiet --no-color )
if [ ! -e "$FILE_0_B" ]; then
base64 /dev/urandom | head -c 0 >"$FILE_0_B"