nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
nitunit: try to mass compile all docunits at once
[nit.git]
/
src
/
nitx.nit
diff --git
a/src/nitx.nit
b/src/nitx.nit
index
cf5ab95
..
ff97784
100644
(file)
--- a/
src/nitx.nit
+++ b/
src/nitx.nit
@@
-32,9
+32,9
@@
redef class ToolContext
var docx: Phase = new NitxPhase(self, null)
# Used to shortcut the prompt and display directly the result in console.
var docx: Phase = new NitxPhase(self, null)
# Used to shortcut the prompt and display directly the result in console.
- var opt_query = new OptionString("Nitx query to perform", "-q", "--query")
+ var opt_command = new OptionString("Nitx command to perform", "-c", "--command")
- init do option_context.add_option opt_query
+ init do option_context.add_option opt_command
end
# Nitx phase explores the model and prepares the console rendering.
end
# Nitx phase explores the model and prepares the console rendering.
@@
-45,7
+45,6
@@
private class NitxPhase
var doc = new DocModel(mainmodule.model, mainmodule)
var phases = [
var doc = new DocModel(mainmodule.model, mainmodule)
var phases = [
- new ExtractionPhase(toolcontext, doc),
new MakePagePhase(toolcontext, doc),
new ConcernsPhase(toolcontext, doc),
new StructurePhase(toolcontext, doc),
new MakePagePhase(toolcontext, doc),
new ConcernsPhase(toolcontext, doc),
new StructurePhase(toolcontext, doc),
@@
-58,7
+57,7
@@
private class NitxPhase
# start nitx
var nitx = new Nitx(toolcontext, doc)
# start nitx
var nitx = new Nitx(toolcontext, doc)
- var q = toolcontext.opt_query.value
+ var q = toolcontext.opt_command.value
if q != null then # shortcut prompt
print ""
nitx.do_query(q)
if q != null then # shortcut prompt
print ""
nitx.do_query(q)