Permalink
Browse files

Implement --version for PngOptimizer

  • Loading branch information...
hadrien-psydk committed Nov 29, 2018
1 parent 432eb1c commit 30e532f95fa88bbbbc8ef5c6d18ae62eda760d4b
Showing with 5 additions and 0 deletions.
  1. +5 −0 projects/pngoptimizer/gtk/POApplication.cpp
@@ -245,6 +245,11 @@ int POApplication::OnCommandLine(GApplicationCommandLine* commandLine)
/////////////////////////////////////////////////////////////
int POApplication::Run(int argc, char** argv)
{
if( argc > 1 && String(argv[1]) == "--version" )
{
Console::WriteLine(PNGO_APPNAME " " PNGO_VERSION);
return 0;
}
int status = g_application_run(G_APPLICATION(m_pGtkApp), argc, argv);

g_object_unref(m_pGtkApp);

0 comments on commit 30e532f

Please sign in to comment.