Fixed FontTrueType::getGlyphDrawable.

ecode: Added -V/--version command parameter.
This commit is contained in:
Martín Lucas Golini
2023-01-04 02:58:09 -03:00
parent 9a85864443
commit 6146d798fb
2 changed files with 28 additions and 6 deletions

View File

@@ -4106,6 +4106,7 @@ EE_MAIN_FUNC int main( int argc, char* argv[] ) {
{ "benchmark-mode" } );
args::Flag verbose( parser, "verbose", "Print all logs to the standard output.",
{ 'v', "verbose" } );
args::Flag version( parser, "version", "Prints version information", { 'V', "version" } );
try {
parser.ParseCLI( Sys::parseArguments( argc, argv ) );
} catch ( const args::Help& ) {
@@ -4121,6 +4122,11 @@ EE_MAIN_FUNC int main( int argc, char* argv[] ) {
return EXIT_FAILURE;
}
if ( version.Get() ) {
std::cout << ecode::Version::getVersionName() << '\n';
return EXIT_SUCCESS;
}
if ( verbose.Get() )
Log::instance()->setConsoleOutput( true );