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
026public class AllegroCoreHelpAction {
027
028    public void show() {
029        StringBuilder sb = new StringBuilder();
030
031        sb.append("Usage:  <commands> <options>\n")
032                .append("with <commands>:\n")
033                .append(" -h --help                                  Display help\n")
034                .append("    --schema-update                         Run database schema update\n")
035                .append("    --schema-status    --output <file>      Generate a database status report (pending schema changes)\n")
036                .append("    --schema-diff      --output <file>      Generate a database schema diff report (compare database to adagio data model)\n")
037                .append("    --schema-changelog --output <file>      Generate a diff into a changelog XML file (compare database to adagio data model)\n")
038                .append("    --new-db           --output <directory> Generate a empty Allegro database\n")
039                .append("    --import-ref                            Import referential data, from the Adagio central database\n")
040                .append("\n")
041                .append("with <options>:\n")
042                .append(" -u --user <user>                   Database user\n")
043                .append(" -p --password <pwd>                Database password\n")
044                .append(" -db --database <db_url>            Database JDBC URL ()\n")
045                .append("\n")
046                .append(" -iu  --import-user <user>        Imported database user\n")
047                .append(" -ip  --import-password <pwd>     Imported database password\n")
048                .append(" -idb --import-database <db_url>  Imported database JDBC URL\n");
049
050        System.out.println(sb.toString());
051    }
052}