Changeset 973:a8a9e120261c in roaraudio


Ignore:
Timestamp:
12/16/08 17:44:57 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added --list-driver, exit on -d list after listing the driver

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roard/roard.c

    r961 r973  
    5454 printf(" -D  --device DEV      - Set the device\n"); 
    5555 printf(" -dO OPTS              - Set output options\n"); 
     56 printf(" --list-driver         - List all drivers\n"); 
    5657 
    5758 printf("\nOutput Options:\n\n"); 
     
    323324   if ( strcmp(driver, "list") == 0 ) { 
    324325    print_driverlist(); 
     326    return 0; 
    325327   } 
    326328  } else if ( strcmp(k, "-D") == 0 || strcmp(k, "--device") == 0 ) { 
     
    328330  } else if ( strcmp(k, "-dO") == 0 ) { 
    329331   opts = argv[++i]; 
     332  } else if ( strcmp(k, "--list-driver") == 0 ) { 
     333   print_driverlist(); 
     334   return 0; 
    330335 
    331336  } else if ( strcmp(k, "-o") == 0 || strcmp(k, "--odriver") == 0 ) { 
Note: See TracChangeset for help on using the changeset viewer.