/**
 * @author Tres Finocchiaro
 * 
 * Copyright (C) 2013 Tres Finocchiaro, QZ Industries
 *
 * IMPORTANT:  This software is dual-licensed
 * 
 * LGPL 2.1
 * This is free software.  This software and source code are released under 
 * the "LGPL 2.1 License".  A copy of this license should be distributed with 
 * this software. http://www.gnu.org/licenses/lgpl-2.1.html
 * 
 * QZ INDUSTRIES SOURCE CODE LICENSE
 * This software and source code *may* instead be distributed under the 
 * "QZ Industries Source Code License", available by request ONLY.  If source 
 * code for this project is to be made proprietary for an individual and/or a
 * commercial entity, written permission via a copy of the "QZ Industries Source
 * Code License" must be obtained first.  If you've obtained a copy of the 
 * proprietary license, the terms and conditions of the license apply only to 
 * the licensee identified in the agreement.  Only THEN may the LGPL 2.1 license
 * be voided.
 * 
 */

package qz;

import qz.common.Constants;

import javax.swing.*;

/**
 * Cannot be run interactively.  Display error and exit.
 * @author tfino
 */
public class Main {

    public static void main(String[] args) {
        for (String s : args) {
            // Print version information and exit
            if (s.equals("-v") || s.equals("--version")) {
                System.out.println(Constants.VERSION);
                System.exit(0);
            }
        }
        JOptionPane.showMessageDialog(null, "This program cannot be run interactively.  Please visit: http://qzindustries.com", "Error", JOptionPane.ERROR_MESSAGE);
        System.exit(0);
    }
}
