summaryrefslogtreecommitdiffstats
path: root/commands
diff options
context:
space:
mode:
Diffstat (limited to 'commands')
-rw-r--r--commands/ip-route-get.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/commands/ip-route-get.c b/commands/ip-route-get.c
index d393218..d3c15b7 100644
--- a/commands/ip-route-get.c
+++ b/commands/ip-route-get.c
@@ -40,10 +40,10 @@ static int do_ip_route_get(int argc, char *argv[])
if (argc == optind + 2)
variable = argv[optind + 1];
- ret = string_to_ip(argv[optind], &ip);
+ ret = resolv(argv[optind], &ip);
if (ret) {
- printf("Cannot convert %s into a IP address: %s\n",
- argv[1], strerror(-ret));
+ printf("Cannot convert \"%s\" into a IP address: %s\n",
+ argv[optind], strerror(-ret));
return 1;
}
@@ -93,4 +93,5 @@ BAREBOX_CMD_START(ip_route_get)
BAREBOX_CMD_OPTS("[-b] <IP> [variable]")
BAREBOX_CMD_GROUP(CMD_GRP_MISC)
BAREBOX_CMD_COMPLETE(empty_complete)
+ BAREBOX_CMD_HELP(cmd_ip_route_get_help)
BAREBOX_CMD_END