Rename --use_hex to --hex
This is much more common on unix systems, and I end up typing it by
accident most of the time. And it is shorter too.
Change-Id: I8e4bbc186a8a82c7546d74e161c145825f0c4c0f
Signed-off-by: Austin Schuh <austin.linux@gmail.com>
diff --git a/aos/aos_cli_utils.cc b/aos/aos_cli_utils.cc
index b930af5..a4ea95e 100644
--- a/aos/aos_cli_utils.cc
+++ b/aos/aos_cli_utils.cc
@@ -228,7 +228,7 @@
aos::FlatbufferToJson(
builder, channel->schema(), static_cast<const uint8_t *>(context.data),
{options.pretty, static_cast<size_t>(options.max_vector_size),
- options.pretty_max, options.use_hex});
+ options.pretty_max, options.hex});
if (options.json) {
std::cout << "{";
diff --git a/aos/aos_cli_utils.h b/aos/aos_cli_utils.h
index 9082188..35fb61f 100644
--- a/aos/aos_cli_utils.h
+++ b/aos/aos_cli_utils.h
@@ -23,7 +23,7 @@
// Print the distributed clock.
bool distributed_clock;
// Print numbers out in hex.
- bool use_hex;
+ bool hex;
};
// Print the flatbuffer out to stdout, both to remove the unnecessary cruft from
diff --git a/aos/aos_dump.cc b/aos/aos_dump.cc
index 573a06c..b76b1a3 100644
--- a/aos/aos_dump.cc
+++ b/aos/aos_dump.cc
@@ -27,7 +27,7 @@
DEFINE_int32(timeout, -1,
"The max time in milliseconds to wait for messages before "
"exiting. -1 means forever, 0 means don't wait.");
-DEFINE_bool(use_hex, false,
+DEFINE_bool(hex, false,
"Are integers in the messages printed in hex notation.");
int main(int argc, char **argv) {
@@ -63,7 +63,7 @@
.print_timestamps = FLAGS_print_timestamps,
.json = FLAGS_json,
.distributed_clock = false,
- .use_hex = FLAGS_use_hex,
+ .hex = FLAGS_hex,
},
/*flush*/ true);
diff --git a/aos/events/logging/log_cat.cc b/aos/events/logging/log_cat.cc
index da061ed..a2441c8 100644
--- a/aos/events/logging/log_cat.cc
+++ b/aos/events/logging/log_cat.cc
@@ -59,7 +59,7 @@
DEFINE_double(monotonic_end_time, 0.0,
"If set, only print messages sent at or before this many seconds "
"after epoch.");
-DEFINE_bool(use_hex, false,
+DEFINE_bool(hex, false,
"Are integers in the messages printed in hex notation.");
using aos::monotonic_clock;
@@ -390,7 +390,7 @@
.print_timestamps = FLAGS_print_timestamps,
.json = FLAGS_json,
.distributed_clock = FLAGS_distributed_clock,
- .use_hex = FLAGS_use_hex,
+ .hex = FLAGS_hex,
},
false);