Commit 2a497674 authored by Adam Wujek's avatar Adam Wujek

sw/petalinux/diot-util: cosmetic changes at startup

Signed-off-by: 's avatarAdam Wujek <dev_public@wujek.eu>
parent 2faa3879
......@@ -209,8 +209,7 @@ int main(int argc, char **argv)
char *curr_script_cmd = NULL;
int opt;
printf("DIOT diagnostic tool\n");
printf("Type \"help\" to list available commands\n");
printf("DIOT diagnostic tool\n\n");
while ((opt = getopt(argc, argv, "he:")) != -1) {
switch(opt)
......@@ -222,12 +221,15 @@ int main(int argc, char **argv)
break;
case 'e':
next_script_cmd = script_commands = strdup(optarg);
printf("args:|%s|\n", script_commands);
break;
default:
break;
}
}
if (!script_commands)
printf("Type \"help\" to list available commands\n");
ret = open_gpios();
rl_attempted_completion_function = command_completion;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment