1   package fr.ifremer.quadrige3.batch.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>").append("\n")
43  				.append("with <commands>:").append("\n")
44  				.append(" -h --help                                  Display help").append("\n")
45  				.append("    --schema-update                         Run database schema update").append("\n")
46  				.append("    --schema-status    --output <file>      Generate a database status report (pending schema changes)").append("\n")
47  				.append("    --schema-diff      --output <file>      Generate a database schema diff report (compare database to quadrige3 data model)").append("\n")
48                  .append("    --import-shapes                         Import shapes files with default input/output directories").append("\n")
49                  .append("    --import-shapes    <input> <output>     Import shapes files with specified input/output directories").append("\n")
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  }