Fix aos_send
Change-Id: I202d7931a3daca7ed9958b4dc8aed46061c70352
Signed-off-by: Austin Schuh <austin.schuh@bluerivertech.com>
diff --git a/aos/aos_cli_utils.cc b/aos/aos_cli_utils.cc
index 56210ee..84ba1e4 100644
--- a/aos/aos_cli_utils.cc
+++ b/aos/aos_cli_utils.cc
@@ -32,7 +32,8 @@
bool CliUtilInfo::Initialize(
int *argc, char ***argv,
- std::function<bool(const aos::Channel *)> channel_filter) {
+ std::function<bool(const aos::Channel *)> channel_filter,
+ bool expect_args) {
// Don't generate failure output if the config doesn't exist while attempting
// to autocomplete.
if (struct stat file_stat;
@@ -113,7 +114,7 @@
for (const aos::Channel *channel : found_channels_now) {
found_channels.push_back(channel);
}
- } while (*argc > 1);
+ } while (expect_args && *argc > 1);
return false;
}