001package fr.ifremer.adagio.synchro.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 SynchroHelpAction {
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("    --import-ref       Run database import of referential tables\n")
035                .append("    --import-data      Run database import of data tables\n")
036                .append("\n")
037                .append("with <options>:\n")
038                .append(" -u   --user <user>             Database user\n")
039                .append(" -p   --password <pwd>          Database password\n")
040                .append(" -db  --database <db_url>           Database JDBC URL\n")
041                .append("\n")
042                .append(" -iu  --import-user <user>        Imported database user\n")
043                .append(" -ip  --import-password <pwd>     Imported database password\n")
044                .append(" -idb --import-database <db_url>  Imported database JDBC URL\n");
045
046        System.out.println(sb.toString());
047    }
048}