nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4acd390
)
nitg: Added comment for exec_and_check
author
Djomanix
<johan.kayser@viacesi.fr>
Tue, 29 Apr 2014 20:41:48 +0000
(16:41 -0400)
committer
Djomanix
<johan.kayser@viacesi.fr>
Fri, 2 May 2014 14:43:25 +0000
(10:43 -0400)
Signed-off-by: Djomanix <johan.kayser@viacesi.fr>
src/toolcontext.nit
patch
|
blob
|
history
diff --git
a/src/toolcontext.nit
b/src/toolcontext.nit
index
f313063
..
b9ba9e8
100644
(file)
--- a/
src/toolcontext.nit
+++ b/
src/toolcontext.nit
@@
-133,7
+133,10
@@
class ToolContext
print "{s}"
end
end
-
+
+ # Executes a program while checking if it's available and if the execution ended correctly
+ #
+ # Stops execution and prints errors if the program isn't available or didn't end correctly
fun exec_and_check(args: Array[String], error: String)
do
var prog = args.first