// TestArgss.java
//
//    Created: August 2005
//
// This file is a component of the BioMoby project.
// Copyright Martin Senger (martin.senger@gmail.com).
//

import org.tulsoft.tools.BaseCmdLine;
import org.tulsoft.shared.UUtils;

/**
 * Work in progress...
 *
 * @author <A HREF="mailto:martin.senger@gmail.com">Martin Senger</A>
 * @version $Id: TestArgs.java,v 1.2 2005/09/04 13:45:37 senger Exp $
 */
public class TestArgs {

    public static void main (String[] args)
	throws Exception {
	String withTools = System.getProperty ("with_tools");
	if (UUtils.is (withTools)) {
	    System.out.println ("Using BaseCmdLine:\n");
	    BaseCmdLine cmd = new BaseCmdLine (args, true);
	    for (int i = 0; i < cmd.params.length; i++) {
		System. out.println (i + ": " + cmd.params[i]);
	    }
	} else {
	    for (int i = 0; i < args.length; i++) {
		System. out.println (i + ": " + args[i]);
	    }
	}
    }
}
