CLI: change argument naming convention

As in all other Unix/POSIX tools and JVM language compilers, multiple words
comprising the argument name should be lowercase, separated by dashes
This commit is contained in:
Alexander Udalov
2014-08-01 21:19:41 -05:00
parent 6da95e2cea
commit cf431ffab0
18 changed files with 52 additions and 60 deletions
@@ -89,8 +89,8 @@ public class ForTestCompileRuntime {
) {
List<String> args = KotlinPackage.arrayListOf(
"-d", destDir.getPath(),
"-noStdlib",
"-noJdkAnnotations",
"-no-stdlib",
"-no-jdk-annotations",
"-suppress", "warnings",
"-annotations", JetTestUtils.getJdkAnnotationsJar().getAbsolutePath(),
"-classpath", classPath
@@ -36,7 +36,6 @@ import java.util.jar.JarEntry;
import java.util.jar.JarInputStream;
public class CompileEnvironmentTest extends TestCase {
public void testSmokeWithCompilerJar() throws IOException {
File tempDir = FileUtil.createTempDirectory("compilerTest", "compilerTest");
@@ -48,9 +47,9 @@ public class CompileEnvironmentTest extends TestCase {
System.out,
"-module", JetTestCaseBuilder.getTestDataPathBase() + "/compiler/smoke/Smoke.ktm",
"-d", resultJar.getAbsolutePath(),
"-noStdlib",
"-no-stdlib",
"-classpath", stdlib.getAbsolutePath(),
"-noJdkAnnotations",
"-no-jdk-annotations",
"-annotations", jdkAnnotations.getAbsolutePath()
);
Assert.assertEquals("compilation completed with non-zero code", ExitCode.OK, rv);
@@ -85,15 +84,16 @@ public class CompileEnvironmentTest extends TestCase {
System.out,
JetTestCaseBuilder.getTestDataPathBase() + "/compiler/smoke/Smoke.kt",
"-d", out.getAbsolutePath(),
"-noStdlib",
"-no-stdlib",
"-classpath", stdlib.getAbsolutePath(),
"-noJdkAnnotations",
"-no-jdk-annotations",
"-annotations", jdkAnnotations.getAbsolutePath()
);
Assert.assertEquals(ExitCode.OK, exitCode);
assertEquals(1, out.listFiles().length);
assertEquals(2, out.listFiles()[0].listFiles().length);
} finally {
}
finally {
FileUtil.delete(tempDir);
}
}