Merge pull request #40 from ValKmjolnir/develop
🐛 fix typo in cli help message
This commit is contained in:
commit
1df1ae4a43
|
@ -1,6 +1,6 @@
|
|||
# __Nasal - Modern Interpreter__
|
||||
|
||||
<img src="./doc/pic/header.png" style="width:800px"></img>
|
||||
<img src="./doc/pic/header.png" style="width:600px"></img>
|
||||
|
||||

|
||||

|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# __Nasal - Modern Interpreter__
|
||||
|
||||
<img src="../doc/pic/header.png" style="width:800px"></img>
|
||||
<img src="../doc/pic/header.png" style="width:600px"></img>
|
||||
|
||||

|
||||

|
||||
|
|
12
src/main.cpp
12
src/main.cpp
|
@ -58,9 +58,10 @@ std::ostream& help(std::ostream& out) {
|
|||
<< " -f, --ref-file | get referenced files.\n"
|
||||
<< " -dbg, --debug | debug mode.\n"
|
||||
<< " --prof | show profiling result, available in debug mode.\n"
|
||||
<< " --prof-all | show profiling result of all files,"
|
||||
<< " --prof-all | show profiling result of all files, "
|
||||
<< "available under debug mode.\n"
|
||||
<< " --limit | use limited execution mode."
|
||||
<< " --limit | use limited execution mode "
|
||||
<< "(readonly api enabled).\n"
|
||||
<< "file:\n"
|
||||
<< " <filename> | execute file.\n"
|
||||
<< "argv:\n"
|
||||
|
@ -116,10 +117,9 @@ void err() {
|
|||
std::exit(1);
|
||||
}
|
||||
|
||||
void execute(
|
||||
const std::string& file,
|
||||
const std::vector<std::string>& argv,
|
||||
const u32 cmd) {
|
||||
void execute(const std::string& file,
|
||||
const std::vector<std::string>& argv,
|
||||
const u32 cmd) {
|
||||
|
||||
using clk = std::chrono::high_resolution_clock;
|
||||
const auto den = clk::duration::period::den;
|
||||
|
|
|
@ -37,11 +37,12 @@ foreach(var a; ants) {
|
|||
}
|
||||
|
||||
var print_map = func {
|
||||
var pics = [" ", "[]"];
|
||||
var res = "\e[1;1H";
|
||||
for(var y = 0; y<30; y += 1) {
|
||||
for(var x = 0; x<60; x += 1) {
|
||||
res ~= "\e[38;5;"~map_color[x + y*60]~";1m";
|
||||
res ~= map[x + y*60] ~ " \e[0m";
|
||||
res ~= pics[map[x + y*60]] ~ "\e[0m";
|
||||
}
|
||||
res ~= "\n";
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue