diff --git a/include/xeus/xhelper.hpp b/include/xeus/xhelper.hpp index c06354a6..af0379d9 100644 --- a/include/xeus/xhelper.hpp +++ b/include/xeus/xhelper.hpp @@ -24,6 +24,15 @@ namespace xeus { XEUS_API std::string get_start_message(const xconfiguration& config); + /** + * @brief Extracts the filename from the command-line arguments and adjusts argc/argv. + * + * Searches for the "-f" flag in the arguments, extracts the following filename, and + * removes both from the argument list. `argc` is updated to reflect the changes. + * @param argc Reference to the argument count, modified if "-f" is found. + * @param argv Argument list, potentially modified. + * @return The extracted filename, or an empty string if not found. + */ XEUS_API std::string extract_filename(int &argc, char* argv[]); XEUS_API bool should_print_version(int argc, char* argv[]);