small cleanup

master
Daniel Kolesa 2015-11-28 20:51:12 +00:00
parent 4fe2b2f7db
commit 421b5957ab
1 changed files with 1 additions and 6 deletions

View File

@ -519,12 +519,7 @@ int main(int argc, char **argv) {
ObState os;
ConstCharRange pn = argv[0];
ConstCharRange lslash = ostd::find_last(pn, '/');
if (!lslash.empty()) {
lslash.pop_front();
os.progname = lslash;
} else {
os.progname = pn;
}
os.progname = lslash.empty() ? pn : (lslash + 1);
cscript::init_lib_base(os.cs);
cscript::init_lib_io(os.cs);