Merge pull request #40 from ValKmjolnir/develop

🐛 fix typo in cli help message
This commit is contained in:
ValK 2024-04-12 00:08:41 +08:00 committed by GitHub
commit 1df1ae4a43
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 10 additions and 9 deletions

View File

@ -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>
![GitHub code size](https://img.shields.io/github/languages/code-size/ValKmjolnir/Nasal-Interpreter?style=flat-square&logo=github)
![GitHub release(latest by date)](https://img.shields.io/github/v/release/ValKmjolnir/Nasal-Interpreter?style=flat-square&logo=github)

View File

@ -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>
![GitHub code size](https://img.shields.io/github/languages/code-size/ValKmjolnir/Nasal-Interpreter?style=flat-square&logo=github)
![GitHub release(latest by date)](https://img.shields.io/github/v/release/ValKmjolnir/Nasal-Interpreter?style=flat-square&logo=github)

View File

@ -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;

View File

@ -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";
}