1 package net.sumaris.core.action;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33 public class HelpAction {
34
35
36
37
38
39
40 public void show() {
41 StringBuilder sb = new StringBuilder();
42
43 sb.append("Usage: <commands> <options>").append("\n")
44 .append("with <commands>:").append("\n")
45 .append(" -h --help Display help").append("\n")
46 .append(" --schema-create --output <db_dir> Create a new database schema").append("\n")
47 .append(" --schema-update Update database schema").append("\n")
48 .append(" --schema-changelog --output <file> Generate a database changelog report (pending schema changes)").append("\n")
49
50 .append("\n")
51 .append("with <options>:").append("\n")
52 .append(" -u --user <user> Database user").append("\n")
53 .append(" -p --password <pwd> Database password").append("\n")
54 .append(" -db --database <db_url> Database JDBC URL ()").append("\n")
55 .append(" -f Force the output directory overwrite, if exists").append("\n")
56 .append("\n");
57
58 System.out.println(sb.toString());
59 }
60 }