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

Commit 7fe1bb5

Browse files
authored
Merge pull request #174 from pontusmelke/4.0-file-not-connection
-f --file not a connection argument
2 parents 79a62aa + 04cf51b commit 7fe1bb5

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)