胡斌

print build version when no input argument or with -v

@@ -1349,12 +1349,13 @@ int SrsConfig::parse_options(int argc, char** argv) @@ -1349,12 +1349,13 @@ int SrsConfig::parse_options(int argc, char** argv)
1349 } 1349 }
1350 1350
1351 if (show_help) { 1351 if (show_help) {
  1352 + fprintf(stderr, "%s\n", VERSION_STRING);
1352 print_help(argv); 1353 print_help(argv);
1353 exit(0); 1354 exit(0);
1354 } 1355 }
1355 1356
1356 if (show_version) { 1357 if (show_version) {
1357 - fprintf(stderr, "%s\n", RTMP_SIG_SRS_VERSION); 1358 + fprintf(stderr, "%s\n%s\n", RTMP_SIG_SRS_VERSION, VERSION_STRING);
1358 exit(0); 1359 exit(0);
1359 } 1360 }
1360 1361