commands: Use REQUIRE_ORDER option processing

This commit is contained in:
Sebastian Huber
2013-11-12 09:40:54 +01:00
parent 760e894d54
commit b4d6afd9f6
5 changed files with 8 additions and 4 deletions

View File

@@ -214,7 +214,11 @@ main(int argc, char *argv[])
all = downonly = uponly = namesonly = noload = verbose = 0;
/* Parse leading line options */
#ifndef __rtems__
strlcpy(options, "adklmnuv", sizeof(options));
#else /* __rtems__ */
strlcpy(options, "+adklmnuv", sizeof(options));
#endif /* __rtems__ */
for (p = opts; p != NULL; p = p->next)
strlcat(options, p->opt, sizeof(options));
while ((c = getopt(argc, argv, options)) != -1) {