Commit 3bca4e8e authored by Miguel Jimenez Lopez's avatar Miguel Jimenez Lopez

sw: Show help message without user arguments (irq-demo)

parent 1c4a9375
...@@ -203,6 +203,11 @@ static int parse_user_arguments(int argc, char *argv[], user_args parsed_args) ...@@ -203,6 +203,11 @@ static int parse_user_arguments(int argc, char *argv[], user_args parsed_args)
parsed_args->irq_period = TEST_FMC_DIO_PERIOD; parsed_args->irq_period = TEST_FMC_DIO_PERIOD;
parsed_args->verbose = 0; parsed_args->verbose = 0;
if(argc == 1) {
show_help();
return 1;
}
while((opt = getopt(argc, argv, "hvf:p:")) != -1) { while((opt = getopt(argc, argv, "hvf:p:")) != -1) {
switch(opt) { switch(opt) {
case 'f': case 'f':
......
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