Skip to content

Commit ae0e9c4

Browse files
committed
Move ConnectionString description to main Utplsql-Command
1 parent 0bdca7d commit ae0e9c4

File tree

5 files changed

+5
-9
lines changed

5 files changed

+5
-9
lines changed

src/main/java/org/utplsql/cli/ConnectionInfo.java

Lines changed: 0 additions & 6 deletions
This file was deleted.

src/main/java/org/utplsql/cli/ReportersCommand.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
@Command( name = "reporters", description = "prints a list of reporters available in the specified database")
2020
public class ReportersCommand implements ICommand {
2121

22-
@Parameters(description = ConnectionInfo.COMMANDLINE_PARAM_DESCRIPTION, arity = "1")
22+
@Parameters(description = UtplsqlPicocliCommand.COMMANDLINE_PARAM_DESCRIPTION, arity = "1")
2323
private String connectionString;
2424

2525
@Override

src/main/java/org/utplsql/cli/RunPicocliCommand.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
@Command( name = "run", description = "run tests")
1616
public class RunPicocliCommand implements IRunCommand {
1717

18-
@Parameters(description = ConnectionInfo.COMMANDLINE_PARAM_DESCRIPTION)
18+
@Parameters(description = UtplsqlPicocliCommand.COMMANDLINE_PARAM_DESCRIPTION)
1919
private String connectionString;
2020

2121
@Option(names = {"-p", "--path"},

src/main/java/org/utplsql/cli/UtplsqlPicocliCommand.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
})
1414
public class UtplsqlPicocliCommand {
1515

16+
public static final String COMMANDLINE_PARAM_DESCRIPTION = "<user>/<password>@//<host>[:<port>]/<service> OR <user>/<password>@<TNSName> OR <user>/<password>@<host>:<port>:<SID>";
17+
1618
@CommandLine.Option(names = "-h", usageHelp = true, description = "display this help and exit")
1719
boolean help;
1820

src/main/java/org/utplsql/cli/VersionInfoCommand.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
@Command( name = "info", description = "prints version information of cli, java-api and - if connection is given - database utPLSQL framework")
1616
public class VersionInfoCommand implements ICommand {
1717

18-
@Parameters(description = ConnectionInfo.COMMANDLINE_PARAM_DESCRIPTION, arity = "0..1")
18+
@Parameters(description = UtplsqlPicocliCommand.COMMANDLINE_PARAM_DESCRIPTION, arity = "0..1")
1919
private String connectionString;
2020

2121
public int run() {

0 commit comments

Comments
 (0)