Make some changes

- Add new programs
- Add command line args
- Add Usage to guide user on how to use programs
This commit is contained in:
Cory Balaton 2023-12-04 12:36:29 +01:00
commit 1762fc87ad
No known key found for this signature in database
GPG key ID: 3E5FCEBFD80F432B
10 changed files with 465 additions and 60 deletions

View file

@ -60,4 +60,14 @@ std::string dirname(const std::string &path)
return path.substr(0, path.find_last_of("/"));
}
std::string concatpath(const std::string &left, const std::string &right)
{
if (left.back() != '/' and right.front() != '/') {
return left + '/' + right;
}
else {
return left + right;
}
}
} // namespace utils