/*
 * Copyright (C) 2013 Aaron Madlon-Kay <aaron@madlon-kay.com>.
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library 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
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 * MA 02110-1301  USA
 */
package org.madlonkay.supertmxmerge;

import java.io.File;
import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;
import org.madlonkay.supertmxmerge.util.GuiUtil;
import org.madlonkay.supertmxmerge.util.LocString;

/**
 *
 * @author Aaron Madlon-Kay <aaron@madlon-kay.com>
 */
public class Main {
    
    /**
     * @param theArgs the command line arguments
     */
    public static void main(String[] args) {
        
        final String[] theArgs = args;
        
        Runnable run = new Runnable() {
            @Override
            public void run() {
                try {
                    UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
                } catch (UnsupportedLookAndFeelException ex) {
                    throw new RuntimeException(ex);
                } catch (ClassNotFoundException ex) {
                    throw new RuntimeException(ex);
                } catch (InstantiationException ex) {
                    throw new RuntimeException(ex);
                } catch (IllegalAccessException ex) {
                    throw new RuntimeException(ex);
                }

                if (theArgs.length == 0) {
                    SuperTmxMerge.promptForFiles();
                    return;
                }

                if (theArgs.length == 2) {
                    SuperTmxMerge.diff(new File(theArgs[0]), new File(theArgs[1]));
                    return;
                } else if (theArgs.length == 3) {
                    SuperTmxMerge.merge(new File(theArgs[0]), new File(theArgs[1]), new File(theArgs[2]));
                    return;
                } else if (theArgs.length == 4) {
                    SuperTmxMerge.mergeTo(new File(theArgs[0]), new File(theArgs[1]), new File(theArgs[2]), new File(theArgs[3]));
                    return;
                }

                printUsage();
            }
        };
        
        GuiUtil.safelyRunBlockingRoutine(run);
    }
    
    private static void printUsage() {
        System.out.print(LocString.get("usage_directions"));
    }
}

@@ -1174,76 +1174,8 @@
   %0D%0A
-    /**%0D%0A     * @param theArgs the command line arguments%0D%0A     */%0D%0A
     

Remove bad comment