Skip to content

Commit

Permalink
State: improve help message, new subsections.
Browse files Browse the repository at this point in the history
  • Loading branch information
kosua20 committed Aug 27, 2023
1 parent 87ebf81 commit d98d3f0
Show file tree
Hide file tree
Showing 3 changed files with 184 additions and 197 deletions.
9 changes: 3 additions & 6 deletions src/helpers/Configuration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -255,8 +255,8 @@ void Configuration::printVersion(){
}

void Configuration::printHelp(){
std::string configOpts, setsOpts;
const size_t alignSize = State::helpText(configOpts, setsOpts);
std::string configOpts;
const size_t alignSize = State::helpText(configOpts);

const std::vector<std::pair<std::string, std::string>> genOpts = {
{"midi", "path to a MIDI file to load"},
Expand Down Expand Up @@ -300,10 +300,7 @@ void Configuration::printHelp(){
}

std::cout << std::endl << "* Configuration options: (will override config file)" << std::endl
<< configOpts;

std::cout << std::endl << "* Note-sets options: (will override config file)" << std::endl
<< setsOpts << std::endl;
<< configOpts << std::endl;

}

Expand Down
Loading

0 comments on commit d98d3f0

Please sign in to comment.