Skip to content
This repository was archived by the owner on Jul 6, 2023. It is now read-only.

Commit 04cf51b

Browse files
committed
-f --file not a connection argument
`-f` or `--file` was listed among the connection arguments which doesn't make sense.
1 parent 79a62aa commit 04cf51b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cypher-shell/src/main/java/org/neo4j/shell/cli/CliArgHelper.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,6 @@ private static ArgumentParser setupParser(ParameterMap parameterMap)
168168
connGroup.addArgument("-d", "--database")
169169
.help("database to connect to. Can also be specified using environment variable " + ConnectionConfig.DATABASE_ENV_VAR)
170170
.setDefault("");
171-
connGroup.addArgument("-f", "--file")
172-
.help("Pass a file with cypher statements to be executed. After the statements have been executed cypher-shell will be shutdown");
173171

174172
MutuallyExclusiveGroup failGroup = parser.addMutuallyExclusiveGroup();
175173
failGroup.addArgument("--fail-fast")
@@ -229,6 +227,8 @@ private static ArgumentParser setupParser(ParameterMap parameterMap)
229227
parser.addArgument("cypher")
230228
.nargs("?")
231229
.help("an optional string of cypher to execute and then exit");
230+
parser.addArgument("-f", "--file")
231+
.help("Pass a file with cypher statements to be executed. After the statements have been executed cypher-shell will be shutdown");
232232

233233
return parser;
234234
}

0 commit comments

Comments
 (0)