public static void main( String[] args )
	{
		if ( MvdTool.testJavaVersion() )
		{
			if ( args.length > 0 )
			{
				if ( args[0].equals("-e") )
					printStackTrace = true;
				else if ( args[0].equals("-h") )
				{
					System.out.println(
						"java -jar nmerge.jar [-e] [-h]\n"
						+"-e: enable print stack traces\n"
						+"-h: print help message");
					return;
				}
			}		
			// verify on each save
			MVDFile.debug = true;
			// create empty output stream to catch usage printout, version 
			// lists etc and throw them away.
			emptyStream = new EmptyOutputStream();
			try
			{
				out = new PrintStream( emptyStream, true, "UTF-8" );
			}
			catch ( Exception e )
			{
				// won't happen
			}
			// now run the tests!
			doUsageTest();
			doCreateTest();
			doHelpTest();
			doAddTest();
			doReadTest();
			doDeleteTest();
			doDescriptionTest();
			doArchiveTest();
			doUnarchiveTest();
			doImportExportTest();
			doUpdateTest();
			doListTest();
			doCompareTest();
			doFindTest();
			doVariantsTest();
			System.out.println( "Tests passed = "+testsPassed );
			System.out.println( "Tests failed = "+testsFailed );
		}
		else
			System.out.println( "Minimum version of java is 1.5.0" );
	}