summaryrefslogtreecommitdiffstats
path: root/commands
diff options
context:
space:
mode:
Diffstat (limited to 'commands')
-rw-r--r--commands/boot.c4
-rw-r--r--commands/ip-route-get.c7
-rw-r--r--commands/miitool.c6
-rw-r--r--commands/nand-bitflip.c1
4 files changed, 5 insertions, 13 deletions
diff --git a/commands/boot.c b/commands/boot.c
index 5d81d79..0257b3d 100644
--- a/commands/boot.c
+++ b/commands/boot.c
@@ -29,10 +29,6 @@ static int do_boot(int argc, char *argv[])
struct bootentries *entries;
struct bootentry *entry;
- verbose = 0;
- dryrun = 0;
- timeout = -1;
-
while ((opt = getopt(argc, argv, "vldmt:w:")) > 0) {
switch (opt) {
case 'v':
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
diff --git a/commands/miitool.c b/commands/miitool.c
index acf6142..4ea6fda 100644
--- a/commands/miitool.c
+++ b/commands/miitool.c
@@ -281,12 +281,6 @@ static int do_miitool(int argc, char *argv[])
while ((opt = getopt(argc, argv, "vs:r:")) > 0) {
switch (opt) {
- case 'a':
- addr = simple_strtol(optarg, NULL, 0);
- break;
- case 'b':
- bus = simple_strtoul(optarg, NULL, 0);
- break;
case 's':
action = MIITOOL_SHOW;
phydevname = xstrdup(optarg);
diff --git a/commands/nand-bitflip.c b/commands/nand-bitflip.c
index a8a97c1..cfde2f4 100644
--- a/commands/nand-bitflip.c
+++ b/commands/nand-bitflip.c
@@ -107,6 +107,7 @@ BAREBOX_CMD_HELP_START(nand_bitflip)
BAREBOX_CMD_HELP_TEXT("This command creates bitflips on Nand pages.")
BAREBOX_CMD_HELP_TEXT("Options:")
BAREBOX_CMD_HELP_OPT ("-b <block>", "block to work on")
+BAREBOX_CMD_HELP_OPT ("-c\t", "Check only for bitflips")
BAREBOX_CMD_HELP_OPT ("-o <offset>", "offset in Nand")
BAREBOX_CMD_HELP_OPT ("-r\t", "flip random bits")
BAREBOX_CMD_HELP_OPT ("-n <numbitflips>", "Specify maximum number of bitflips to generate")