#ifndef _FRONTEND_MAIN_HPP_ #define _FRONTEND_MAIN_HPP_ class Frontend; // Shared process entry point, frontend-agnostic. Parses argv // (--source / --restore / --batch / --commands-md / --help), drives `fe` // through the boot commands and then either dumps output (batch) or enters its // event loop, and returns the process exit code. Each frontend's main() just // constructs its concrete Frontend and forwards to this. int frontend_main(int argc, char **argv, Frontend &fe); #endif // _FRONTEND_MAIN_HPP_