summaryrefslogtreecommitdiffstats
path: root/media/tools
diff options
context:
space:
mode:
authorscherkus@chromium.org <scherkus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-25 22:56:42 +0000
committerscherkus@chromium.org <scherkus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-25 22:56:42 +0000
commit66c7207477210c663aa42af037484aff8fceab63 (patch)
tree3518f79b4e518e4524153e5dfb2bc553ebe0da2c /media/tools
parentfe989f1881aad3beb18ed86b18f8cb19a11910ea (diff)
downloadchromium_src-66c7207477210c663aa42af037484aff8fceab63.zip
chromium_src-66c7207477210c663aa42af037484aff8fceab63.tar.gz
chromium_src-66c7207477210c663aa42af037484aff8fceab63.tar.bz2
Use argv[0] to print out executable usage info for media tools.
BUG=n/a TESt=n/a Review URL: http://codereview.chromium.org/434101 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33148 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/tools')
-rw-r--r--media/tools/media_bench/media_bench.cc2
-rw-r--r--media/tools/player_x11/player_x11.cc2
-rw-r--r--media/tools/wav_ola_test/wav_ola_test.cc2
3 files changed, 3 insertions, 3 deletions
diff --git a/media/tools/media_bench/media_bench.cc b/media/tools/media_bench/media_bench.cc
index fffbaf3..1a18ec8 100644
--- a/media/tools/media_bench/media_bench.cc
+++ b/media/tools/media_bench/media_bench.cc
@@ -84,7 +84,7 @@ int main(int argc, const char** argv) {
std::vector<std::wstring> filenames(cmd_line->GetLooseValues());
if (filenames.empty()) {
- std::cerr << "Usage: media_bench [OPTIONS] FILE [DUMPFILE]\n"
+ std::cerr << "Usage: " << argv[0] << " [OPTIONS] FILE [DUMPFILE]\n"
<< " --stream=[audio|video] "
<< "Benchmark either the audio or video stream\n"
<< " --video-threads=N "
diff --git a/media/tools/player_x11/player_x11.cc b/media/tools/player_x11/player_x11.cc
index 796e0ee..9e7261a 100644
--- a/media/tools/player_x11/player_x11.cc
+++ b/media/tools/player_x11/player_x11.cc
@@ -94,7 +94,7 @@ bool InitPipeline(MessageLoop* message_loop,
int main(int argc, char** argv) {
// Read arguments.
if (argc == 1) {
- std::cout << "Usage: player_x11 --file=FILE [--audio]"
+ std::cout << "Usage: " << argv[0] << " --file=FILE [--audio]"
" [--alsa-device=DEVICE]" << std::endl;
return 1;
}
diff --git a/media/tools/wav_ola_test/wav_ola_test.cc b/media/tools/wav_ola_test/wav_ola_test.cc
index 17bbabc..c07c2d7 100644
--- a/media/tools/wav_ola_test/wav_ola_test.cc
+++ b/media/tools/wav_ola_test/wav_ola_test.cc
@@ -72,7 +72,7 @@ int main(int argc, const char** argv) {
std::vector<std::wstring> filenames(cmd_line->GetLooseValues());
if (filenames.empty()) {
- std::cerr << "Usage: wav_ola_test RATE INFILE OUTFILE\n"
+ std::cerr << "Usage: " << argv[0] << " RATE INFILE OUTFILE\n"
<< std::endl;
return 1;
}