Use defined variable for autocomplete in starter
It makes the code more readable
Signed-off-by: milind-u <milind.upadhyay@gmail.com>
Change-Id: I36342bc1f5c0365e3b315d6bbe4ae9f129fdb4bf
diff --git a/aos/starter/starter_cmd.cc b/aos/starter/starter_cmd.cc
index 89a6c57..d306306 100644
--- a/aos/starter/starter_cmd.cc
+++ b/aos/starter/starter_cmd.cc
@@ -278,7 +278,7 @@
}
// Autocomplete with "all"
- if (std::string_view("all").find(FLAGS__bash_autocomplete_word) == 0) {
+ if (std::string_view("all").find(app_name) == 0) {
std::cout << "'all'";
}
}