1 package fr.ifremer.quadrige2.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 public class HelpAction {
33
34
35
36
37
38
39 public void show() {
40 StringBuilder sb = new StringBuilder();
41
42 sb.append("Usage: <commands> <options>\n")
43 .append("with <commands>:\n")
44 .append(" -h --help Display help\n")
45 .append(" --schema-update Run database schema update\n")
46 .append(" --schema-status --output <file> Generate a database status report (pending schema changes)\n")
47 .append(" --schema-diff --output <file> Generate a database schema diff report (compare database to quadrige2 data model)\n")
48 .append(" --schema-diff --output <file> Generate a diff into a diff XML file (compare database to quadrige2 data model)\n")
49 .append("\n")
50 .append("with <options>:\n")
51 .append(" -u --user <user> Database user\n")
52 .append(" -p --password <pwd> Database password\n")
53 .append(" -db --database <db_url> Database JDBC URL ()\n")
54 .append(" -f Force the output directory overrite, if exists\n")
55 .append("\n")
56 .append(" -iu --import-user <user> Imported database user\n")
57 .append(" -ip --import-password <pwd> Imported database password\n")
58 .append(" -idb --import-database <db_url> Imported database JDBC URL\n");
59
60 System.out.println(sb.toString());
61 }
62 }