📝 little change

This commit is contained in:
ValKmjolnir 2022-08-05 23:22:32 +08:00
parent feea8f8d66
commit 2937c10c77
2 changed files with 12 additions and 14 deletions

View File

@ -22,7 +22,7 @@ void help()
#endif
<<"nasal <option>\n"
<<"option:\n"
<<" -h, --help | get this help.\n"
<<" -h, --help | get this help and exit.\n"
<<" -v, --version | get version of nasal interpreter.\n\n"
<<"nasal [option...] <file> [argv...]\n"
<<"option:\n"
@ -161,8 +161,6 @@ i32 main(i32 argc,const char* argv[])
}
if(!filename.length())
err();
if(!cmd)
cmd|=VM_EXEC;
execute(filename,vm_argv,cmd);
execute(filename,vm_argv,cmd?cmd:cmd|VM_EXEC);
return 0;
}

View File

@ -12,7 +12,7 @@ nas_ref nas_err(const string& err_f,const string& info)
return {vm_none};
}
inline void print_core(std::vector<nas_ref>& elems)
void print_core(std::vector<nas_ref>& elems)
{
for(auto& i:elems)
switch(i.type)