| 5135 | using namespace ecode; |
| 5136 | |
| 5137 | EE_MAIN_FUNC int main( int argc, char* argv[] ) { |
| 5138 | args::ArgumentParser parser( "ecode" ); |
| 5139 | args::HelpFlag help( parser, "help", "Display this help menu", { 'h', '?', "help" } ); |
| 5140 | args::PositionalList<std::string> fileOrFolderPos( parser, "file_or_folder", |
| 5141 | "The file/s or folder/s path to open" ); |
| 5142 | args::ValueFlag<std::string> file( |
| 5143 | parser, "file", |
| 5144 | "The file path to open. A file path can also contain the line number and column to " |
| 5145 | "position the cursor when the file is opened. The format is: " |
| 5146 | "$FILEPATH:$LINE_NUMBER:$COLUMN. Both line number and column are optional (line number can " |
| 5147 | "be provided without column too).", |
| 5148 | { 'f', "file" } ); |
| 5149 | args::ValueFlag<std::string> folder( parser, "folder", "The folder path to open", |
| 5150 | { "folder" } ); |
| 5151 | args::ValueFlag<Float> pixelDensityConf( parser, "pixel-density", |
| 5152 | "Set default application pixel density", |
| 5153 | { 'd', "pixel-density" } ); |
| 5154 | args::ValueFlag<std::string> prefersColorScheme( |
| 5155 | parser, "prefers-color-scheme", |
| 5156 | "Set the preferred color scheme (\"light\", \"dark\" or \"system\")", |
| 5157 | { 'c', "prefers-color-scheme" } ); |
| 5158 | args::ValueFlag<std::string> css( |
| 5159 | parser, "css", |
| 5160 | "Sets the path for a custom stylesheet to load at the start of the application", |
| 5161 | { "css" } ); |
| 5162 | args::Flag terminal( parser, "terminal", "Open a new terminal / Open ecode in terminal mode", |
| 5163 | { 't', "terminal" } ); |
| 5164 | args::MapFlag<std::string, LogLevel> logLevel( |
| 5165 | parser, "log-level", "The level of details that the application will emit logs.", |
| 5166 | { 'l', "log-level" }, Log::getMapFlag(), Log::getDefaultLogLevel() ); |
| 5167 | args::Flag fb( parser, "framebuffer", "Use frame buffer (more memory usage, less CPU usage)", |
| 5168 | { "fb", "framebuffer" } ); |
| 5169 | args::Flag benchmarkMode( parser, "benchmark-mode", |
| 5170 | "Render as much as possible to measure the rendering performance.", |
| 5171 | { "benchmark-mode" } ); |
| 5172 | args::Flag verbose( parser, "verbose", "Redirects all logs to stdout.", { 'v', "verbose" } ); |
| 5173 | args::Flag version( parser, "version", "Prints version information", { 'V', "version" } ); |
| 5174 | args::Flag portable( |
| 5175 | parser, "portable", |
| 5176 | "Portable Mode (it will save the configuration files within the ecode main folder)", |
| 5177 | { 'p', "portable" } ); |
| 5178 | args::Flag incognito( |
| 5179 | parser, "incognito", |
| 5180 | "It will stop keeping track of the opened files or folders during the session", |
| 5181 | { 'i', "incognito" } ); |
| 5182 | args::ValueFlag<size_t> jobs( |
| 5183 | parser, "jobs", |
| 5184 | "Sets the number of background jobs that the application will spawn " |
| 5185 | "at the start of the application", |
| 5186 | { 'j', "jobs" }, 0 ); |
| 5187 | args::Flag health( parser, "health", "Checks for potential errors in editor setup.", |
| 5188 | { "health" }, "" ); |
| 5189 | args::ValueFlag<std::string> healthLang( |
| 5190 | parser, "health-lang", |
| 5191 | "Checks for potential errors in editor setup for a specific language.", { "health-lang" }, |
| 5192 | "" ); |
| 5193 | args::MapFlag<std::string, FeaturesHealth::OutputFormat> healthFormat( |
| 5194 | parser, "health-format", |
nothing calls this directly
no test coverage detected