- * \returns getFullArg('[', ']') including the brackets or the
- * empty string if no argument was found.
+ * Like getOpt(), but distinguishes between a missing argument ""
+ * and an empty argument "[]".
+ */
+ std::string getFullOpt(bool keepws = false);
+ /*!
+ * \returns getArg('[', ']') including the brackets or the
+ * empty string if there is no such argument.
+ * No whitespace is eaten if \p keepws is true and no optional
+ * argument exists. This is important if an optional argument is
+ * parsed that would go after a command in ERT: In this case the
+ * whitespace is needed to separate the ERT from the subsequent
+ * word. Without it, the ERT and the next word would be concatenated
+ * during .tex export, thus creating an invalid command.