Changeset 119a794 in mainline for uspace/app/tmon/main.c


Ignore:
Timestamp:
2017-12-22T11:17:25Z (6 years ago)
Author:
Petr Mánek <petr.manek@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ab8e0f5
Parents:
ff16da5f
Message:

tmon: use getopt for customize read/write count and size

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/tmon/main.c

    rff16da5f r119a794  
    9191        printf(NAME ": benchmark USB diagnostic device\n\n");
    9292
    93         printf("Usage: %s command [options] [device]\n", app_name);
     93        printf("Usage: %s command [device] [options]\n", app_name);
    9494        printf("Available commands:\n");
    9595        for (int i = 0; commands[i].name; ++i) {
     
    118118        }
    119119
    120         return cmd->action(argc - 2, argv + 2);
     120        return cmd->action(argc - 1, argv + 1);
    121121}
    122122
Note: See TracChangeset for help on using the changeset viewer.