Siba/src/org/dclermonte/siba/cli/SibaCLI.java

61 lines
1.5 KiB
Java
Raw Normal View History

2016-04-19 22:34:25 +02:00
/*
2016-04-26 23:02:26 +02:00
* Copyright (C) 2016 Didier Clermonté <dclermonte@april.org>
2016-04-19 22:34:25 +02:00
* Copyright (C) 2016 Christian Pierre Momon <christian.momon@devinsy.fr>
*
* This file is part of Siba.
*
* Siba is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
2016-03-29 23:25:18 +02:00
package org.dclermonte.siba.cli;
2016-05-02 22:28:35 +02:00
import org.dclermonte.siba.gui.SibaGUI;
2016-03-29 23:25:18 +02:00
public class SibaCLI
{
2016-05-02 22:28:35 +02:00
public static void help()
{
System.out.println("usage : ");
System.out.println("Siba : ");
System.out.println("Siba [-h |-help| --help]");
System.out.println("siba -backup -directoryToSave [-target]");
System.out.println("siba -check [-filename | -file.tgz | -file.md5]");
}
public static void main(final String[] args)
{
if (args.length == 0)
{
SibaGUI.main(args);
}
for (String arg : args)
{
if (arg.equals("-h") || args.equals("-help") || args.equals("--help"))
{
help();
break;
}
if (arg.equals("-backup"))
{
}
}
2016-03-29 23:25:18 +02:00
2016-05-02 22:28:35 +02:00
}
2016-03-29 23:25:18 +02:00
}