commit | 2ec36b0da00f959ed5cf47b947630fe6bfe73c9f | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Mon Feb 06 16:20:30 2017 -0800 |
committer | Elliott Hughes <enh@google.com> | Mon Feb 06 16:20:30 2017 -0800 |
tree | 138c2aa04246ae10338624217875a172eedaf078 | |
parent | 01b25ab14912712024d5342064c7b70de85e2db8 [diff] [blame] |
Don't print 168^W143 lines of help when someone makes a typo. Print actual usage messages in most cases. Add --help and --version. Bug: http://b/28054087 Test: manual Change-Id: I39c1cb7a84f52e0c35d24f140ec55c3a181283fb
diff --git a/adb/adb_utils.h b/adb/adb_utils.h index 16317e0..2b59034 100644 --- a/adb/adb_utils.h +++ b/adb/adb_utils.h
@@ -21,6 +21,8 @@ #include <android-base/macros.h> +int usage(const char*, ...); + void close_stdin(); bool getcwd(std::string* cwd);