style: scala format
This commit is contained in:
@@ -82,9 +82,11 @@ def compile(filename: String, outFile: Option[File] = None)(using
|
|||||||
def main(args: Array[String]): Unit =
|
def main(args: Array[String]): Unit =
|
||||||
OParser.parse(cliParser, args, CliConfig()) match {
|
OParser.parse(cliParser, args, CliConfig()) match {
|
||||||
case Some(config) =>
|
case Some(config) =>
|
||||||
System.exit(compile(
|
System.exit(
|
||||||
|
compile(
|
||||||
config.file.getAbsolutePath,
|
config.file.getAbsolutePath,
|
||||||
outFile = Some(File(".", config.file.getName.stripSuffix(".wacc") + ".s"))
|
outFile = Some(File(".", config.file.getName.stripSuffix(".wacc") + ".s"))
|
||||||
))
|
)
|
||||||
|
)
|
||||||
case None =>
|
case None =>
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user