Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 9e279c4 in mainline for uspace/app/usbinfo/main.c


Ignore:
Timestamp:
2012-07-20T15:25:32Z (11 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial
Children:
8d355aa8
Parents:
3795f9c
Message:

Merge lsusb to usbinfo.

Use -l or —list to get the list.

File:
1 edited

Legend:

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

    r3795f9c r9e279c4  
    6262
    6363        _OPTION("-h --help", "Print this help and exit.");
     64        _OPTION("-l --list", "Print a list of host controllers and devices.");
    6465        _OPTION("-i --identification", "Brief device identification.");
    6566        _OPTION("-m --match-ids", "Print match ids generated for the device.");
     
    8283        {"help", no_argument, NULL, 'h'},
    8384        {"identification", no_argument, NULL, 'i'},
     85        {"list", no_argument, NULL, 'l'},
    8486        {"match-ids", no_argument, NULL, 'm'},
    8587        {"descriptor-tree", no_argument, NULL, 't'},
     
    9193        {0, 0, NULL, 0}
    9294};
    93 static const char *short_options = "himtTsSrR";
     95static const char *short_options = "hilmtTsSrR";
    9496
    9597static usbinfo_action_t actions[] = {
     
    157159                        case -1:
    158160                                break;
     161                        case 'l':
     162                                list();
     163                                return 0;
    159164                        case '?':
    160165                                print_usage(argv[0]);
Note: See TracChangeset for help on using the changeset viewer.