update beatmap option and help text

This commit is contained in:
jacekpoz 2024-04-20 14:08:55 +02:00
parent 8d7b193cf6
commit 79441b46fd
Signed by: poz
SSH key fingerprint: SHA256:JyLeVWE4bF3tDnFeUpUaJsPsNlJyBldDGV/dIKSLyN8

View file

@ -54,7 +54,7 @@ int main(int argc, char *argv[]) {
continue;
}
if (std::string(argv[i]) == "-p" || std::string(argv[i]) == "--parse") {
if (std::string(argv[i]) == "-b" || std::string(argv[i]) == "--beatmap") {
// no more args
if (i == (size_t)argc - 1) {
std::cerr << "error: no difficulty file passed\n";
@ -72,9 +72,10 @@ int main(int argc, char *argv[]) {
std::cout << PNAME << " [" << VERSION << "]\n";
std::cout << "\n";
std::cout << "OPTIONS\n";
std::cout << "\t-h, --help\t\t\tdisplays this help text\n";
std::cout << "\t-o, --osu </path/to/osu>\tpath to osu directory (defaults to ~/.osu/drive_c/osu)\n";
std::cout << "\t-s, --skin <skin_name>\t\tskin name\n";
std::cout << "\t-h, --help\t\t\t\tdisplays this help text\n";
std::cout << "\t-o, --osu </path/to/osu>\t\tpath to osu directory (defaults to ~/.osu/drive_c/osu)\n";
std::cout << "\t-s, --skin <skin_name>\t\t\tskin name\n";
std::cout << "\t-b, --beatmap </path/to/beatmap>\tplay beatmap\n";
std::exit(EXIT_SUCCESS);
}
}