aboutsummaryrefslogtreecommitdiff
path: root/src/main/scala/firrtl/options/Shell.scala
diff options
context:
space:
mode:
authorchick2020-08-14 19:47:53 -0700
committerJack Koenig2020-08-14 19:47:53 -0700
commit6fc742bfaf5ee508a34189400a1a7dbffe3f1cac (patch)
tree2ed103ee80b0fba613c88a66af854ae9952610ce /src/main/scala/firrtl/options/Shell.scala
parentb516293f703c4de86397862fee1897aded2ae140 (diff)
All of src/ formatted with scalafmt
Diffstat (limited to 'src/main/scala/firrtl/options/Shell.scala')
-rw-r--r--src/main/scala/firrtl/options/Shell.scala19
1 files changed, 8 insertions, 11 deletions
diff --git a/src/main/scala/firrtl/options/Shell.scala b/src/main/scala/firrtl/options/Shell.scala
index 88301d30..b0ead81f 100644
--- a/src/main/scala/firrtl/options/Shell.scala
+++ b/src/main/scala/firrtl/options/Shell.scala
@@ -4,7 +4,7 @@ package firrtl.options
import firrtl.AnnotationSeq
-import logger.{LogLevelAnnotation, ClassLogLevelAnnotation, LogFileAnnotation, LogClassNamesAnnotation}
+import logger.{ClassLogLevelAnnotation, LogClassNamesAnnotation, LogFileAnnotation, LogLevelAnnotation}
import scopt.OptionParser
@@ -62,28 +62,25 @@ class Shell(val applicationName: String) {
parser.note("Shell Options")
ProgramArgsAnnotation.addOptions(parser)
- Seq( TargetDirAnnotation,
- InputAnnotationFileAnnotation,
- OutputAnnotationFileAnnotation )
+ Seq(TargetDirAnnotation, InputAnnotationFileAnnotation, OutputAnnotationFileAnnotation)
.foreach(_.addOptions(parser))
- parser.opt[Unit]("show-registrations")
- .action{ (_, c) =>
+ parser
+ .opt[Unit]("show-registrations")
+ .action { (_, c) =>
val rtString = registeredTransforms.map(r => s"\n - ${r.getClass.getName}").mkString
val rlString = registeredLibraries.map(l => s"\n - ${l.getClass.getName}").mkString
println(s"""|The following FIRRTL transforms registered command line options:$rtString
|The following libraries registered command line options:$rlString""".stripMargin)
- c }
+ c
+ }
.unbounded()
.text("print discovered registered libraries and transforms")
parser.help("help").text("prints this usage text")
parser.note("Logging Options")
- Seq( LogLevelAnnotation,
- ClassLogLevelAnnotation,
- LogFileAnnotation,
- LogClassNamesAnnotation )
+ Seq(LogLevelAnnotation, ClassLogLevelAnnotation, LogFileAnnotation, LogClassNamesAnnotation)
.foreach(_.addOptions(parser))
}