From 92dc52d53003120359e1ea383020a253a1528d6b Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Wed, 27 Apr 2022 01:44:26 +0200 Subject: [PATCH] Add --help message to GUI profiler. --- profiler/src/main.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/profiler/src/main.cpp b/profiler/src/main.cpp index 5669bf31..bebe7d59 100644 --- a/profiler/src/main.cpp +++ b/profiler/src/main.cpp @@ -360,6 +360,17 @@ int main( int argc, char** argv ) if( argc == 2 ) { + if( strcmp( argv[1], "--help" ) == 0 ) + { + printf( "%s\n\n", title ); + printf( "Usage:\n\n" ); + printf( " Open trace file stored on disk:\n" ); + printf( " %s file.tracy\n\n", argv[0] ); + printf( " Connect to a running client:\n" ); + printf( " %s -a address [-p port]\n", argv[0] ); + updateThread.join(); + exit( 0 ); + } auto f = std::unique_ptr( tracy::FileRead::Open( argv[1] ) ); if( f ) {