Removes an option if it exists. @param option the name of the option @return true if the option was actually removed
(String option)
| 798 | * @return <code>true</code> if the option was actually removed |
| 799 | */ |
| 800 | public boolean remove(String option) { |
| 801 | String normed = normOption(option); |
| 802 | if (hasOption(normed)) { |
| 803 | this.lines.remove(getOption(normed)); |
| 804 | this.options.remove(normed); |
| 805 | return true; |
| 806 | } else { |
| 807 | return false; |
| 808 | } |
| 809 | } |
| 810 | |
| 811 | /** |
| 812 | * Adds a comment line to the end of this section. A comment spanning |
nothing calls this directly
no test coverage detected