Skip to content

Commit

Permalink
Rename Main => CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
japgolly committed Dec 14, 2020
1 parent 551fb34 commit 792aae3
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -5,7 +5,7 @@ import java.io._
import java.nio.charset.StandardCharsets
import scala.util.Using

object Main {
object CLI {

private final val cliName = "tla2json"
private final val displayName = cliName
Expand All @@ -29,6 +29,7 @@ object Main {

private val optParser = new scopt.OptionParser[Options](cliName) {
head(displayName, "v" + BuildInfo.version)
head()

opt[Unit]('D', "dump" ).action_(_.copy(parseDump = true)).text("Parse input as a dump")
opt[Unit]('T', "trace" ).action_(_.copy(parseTrace = true)).text("Parse input as a trace (default)")
Expand Down

0 comments on commit 792aae3

Please sign in to comment.