]> rtime.felk.cvut.cz Git - can-eth-gw.git/commitdiff
Understand -h option
authorMichal Sojka <sojkam1@fel.cvut.cz>
Tue, 29 Jan 2013 12:40:44 +0000 (13:40 +0100)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Tue, 29 Jan 2013 12:40:44 +0000 (13:40 +0100)
utils/cegw/cegw.c

index ee0071581c7a6a21aa3b9c5fd36fb760ca8929ea..e513aec4db211dffe50051aadb0e19905e12da29 100644 (file)
@@ -189,7 +189,7 @@ int main(int argc, char *argv[])
        struct cegw_ioctl *gwctl = NULL;
        struct can_filter *filter = NULL;
 
-       if (argc == 1) {
+       if (argc == 1 || (argc == 2 && strcmp(argv[1], "-h") == 0)) {
                printf(help_msg, argv[0], argv[0]);
                return 0;
        }