001package fr.ifremer.adagio.core.action; 002 003/* 004 * #%L 005 * SIH-Adagio :: Shared 006 * $Id:$ 007 * $HeadURL:$ 008 * %% 009 * Copyright (C) 2012 - 2014 Ifremer 010 * %% 011 * This program is free software: you can redistribute it and/or modify 012 * it under the terms of the GNU Affero General Public License as published by 013 * the Free Software Foundation, either version 3 of the License, or 014 * (at your option) any later version. 015 * 016 * This program is distributed in the hope that it will be useful, 017 * but WITHOUT ANY WARRANTY; without even the implied warranty of 018 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 019 * GNU General Public License for more details. 020 * 021 * You should have received a copy of the GNU Affero General Public License 022 * along with this program. If not, see <http://www.gnu.org/licenses/>. 023 * #L% 024 */ 025 026/** 027 * Display help for command line (--help) 028 * 029 * @author Benoit Lavenier <benoit.lavenier@e-is.pro> 030 * @since 3.5.4 031 * 032 */ 033public class AdagioCoreHelpAction { 034 035 public void show() { 036 StringBuilder sb = new StringBuilder(); 037 038 sb.append("Usage: <commands> <options>\n") 039 .append("with <commands>:\n") 040 .append(" -h --help Display help\n") 041 .append(" --server --port <port> Start server (to enable Allegro synchronization)\n") 042 .append(" --schema-update Run database schema update\n") 043 .append(" --schema-status --output <file> Generate a database status report (pending schema changes)\n") 044 .append(" --schema-diff --output <file> Generate a database schema diff report (compare database to adagio data model)\n") 045 .append(" --schema-changelog --output <file> Generate a diff into a changelog XML file (compare database to adagio data model)\n") 046 .append("\n") 047 .append("with <options>:\n") 048 .append(" -u --user <user> Database user\n") 049 .append(" -p --password <pwd> Database password\n") 050 .append(" -db --database <db_url> Database JDBC URL ()\n"); 051 052 System.out.println(sb.toString()); 053 } 054}