equal
deleted
inserted
replaced
48 |
48 |
49 val more_args = getopts(args) |
49 val more_args = getopts(args) |
50 if (more_args.nonEmpty) getopts.usage() |
50 if (more_args.nonEmpty) getopts.usage() |
51 |
51 |
52 |
52 |
|
53 val sessions_structure = Sessions.load_structure(options, dirs = dirs) |
|
54 |
53 // build logic |
55 // build logic |
54 if (!no_build && !raw_ml_system) { |
56 if (!no_build && !raw_ml_system) { |
55 val progress = new Console_Progress() |
57 val progress = new Console_Progress() |
56 val rc = |
58 val rc = |
57 progress.interrupt_handler { |
59 progress.interrupt_handler { |
60 if (rc != 0) sys.exit(rc) |
62 if (rc != 0) sys.exit(rc) |
61 } |
63 } |
62 |
64 |
63 // process loop |
65 // process loop |
64 val process = |
66 val process = |
65 ML_Process(options, logic = logic, args = List("-i"), dirs = dirs, redirect = true, |
67 ML_Process(options, sessions_structure, logic = logic, args = List("-i"), redirect = true, |
66 modes = if (raw_ml_system) Nil else modes ::: List("ASCII"), |
68 modes = if (raw_ml_system) Nil else modes ::: List("ASCII"), |
67 raw_ml_system = raw_ml_system, |
69 raw_ml_system = raw_ml_system, |
68 store = Some(Sessions.store(options)), |
70 store = Some(Sessions.store(options)), |
69 session_base = |
71 session_base = |
70 if (raw_ml_system) None |
72 if (raw_ml_system) None |