--- GET TEXT ARGUMENT --- Updates the value parameter with the text argument (unbound value) if found. Index starts at 0. Returns true if found, else false.
| 165 | // Index starts at 0. |
| 166 | // Returns true if found, else false. |
| 167 | bool Sarge::getTextArgument(uint32_t index, std::string &value) { |
| 168 | if (index < textArguments.size()) { value = textArguments.at(index); return true; } |
| 169 | |
| 170 | return false; |
| 171 | } |
| 172 | |
| 173 | |
| 174 | // --- PRINT HELP --- |