Skip to content
Snippets Groups Projects
Commit fd1604d9 authored by Manos Koukoutos's avatar Manos Koukoutos
Browse files

Don't transform Options to Set and back

parent 8f737a51
No related branches found
No related tags found
No related merge requests found
...@@ -103,11 +103,11 @@ object Main { ...@@ -103,11 +103,11 @@ object Main {
val initReporter = new DefaultReporter(Set()) val initReporter = new DefaultReporter(Set())
val options = args.filter(_.startsWith("--")).toSet val options = args.filter(_.startsWith("--"))
val files = args.filterNot(_.startsWith("-")).map(new java.io.File(_)) val files = args.filterNot(_.startsWith("-")).map(new java.io.File(_))
val leonOptions: Set[LeonOption[Any]] = options.map { opt => val leonOptions: Seq[LeonOption[Any]] = options.map { opt =>
val (name, value) = try { val (name, value) = try {
OptionsHelpers.nameValue(opt) OptionsHelpers.nameValue(opt)
} catch { } catch {
...@@ -139,8 +139,9 @@ object Main { ...@@ -139,8 +139,9 @@ object Main {
LeonContext( LeonContext(
reporter = reporter, reporter = reporter,
files = files, files = files,
options = leonOptions.toSeq, options = leonOptions,
interruptManager = new InterruptManager(reporter)) interruptManager = new InterruptManager(reporter)
)
} }
def computePipeline(ctx: LeonContext): Pipeline[List[String], Any] = { def computePipeline(ctx: LeonContext): Pipeline[List[String], Any] = {
...@@ -221,7 +222,6 @@ object Main { ...@@ -221,7 +222,6 @@ object Main {
// Process options // Process options
val ctx = try { val ctx = try {
processOptions(argsl) processOptions(argsl)
} catch { } catch {
case LeonFatalError(None) => case LeonFatalError(None) =>
exit(error = true) exit(error = true)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment