Changeset 1507:ff0c9920a154 in roaraudio for roarclients/roarcat.c


Ignore:
Timestamp:
04/04/09 11:51:45 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

fixed bug reported by Ionic to add short options as stated in the manpage and added esdfilt compatible options to roarfilt

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roarclients/roarcat.c

    r1194 r1507  
    3232 printf("\nOptions:\n\n"); 
    3333 
    34  printf("  --server SERVER    - Set server hostname\n" 
    35         "  --rate  RATE      - Set sample rate\n" 
    36         "  --bits  BITS      - Set bits per sample\n" 
    37         "  --chans CHANNELS  - Set number of channels\n" 
    38         "  --codec  CODEC     - Set the codec\n" 
    39         "  --help             - Show this help\n" 
     34 printf("  --server    SERVER    - Set server hostname\n" 
     35        "  --rate  -R RATE      - Set sample rate\n" 
     36        "  --bits  -B BITS      - Set bits per sample\n" 
     37        "  --chans -C CHANNELS  - Set number of channels\n" 
     38        "  --codec     CODEC     - Set the codec\n" 
     39        "  --help                - Show this help\n" 
    4040       ); 
    4141 
     
    6262  } else if ( !strcmp(k, "-n") ) { 
    6363   name = argv[++i]; 
    64   } else if ( !strcmp(k, "--rate") || !strcmp(k, "-r") ) { 
     64  } else if ( !strcmp(k, "--rate") || !strcmp(k, "-r") || !strcmp(k, "-R") ) { 
    6565   rate = atoi(argv[++i]); 
    66   } else if ( !strcmp(k, "--bits") ) { 
     66  } else if ( !strcmp(k, "--bits") || !strcmp(k, "-B") ) { 
    6767   bits = atoi(argv[++i]); 
    6868  } else if ( !strcmp(k, "-b") ) { 
    6969   bits = 8; 
    70   } else if ( !strcmp(k, "--channels") || !strcmp(k, "--chans") ) { 
     70  } else if ( !strcmp(k, "--channels") || !strcmp(k, "--chans") || !strcmp(k, "-C") ) { 
    7171   channels = atoi(argv[++i]); 
    7272  } else if ( !strcmp(k, "-m") ) { 
Note: See TracChangeset for help on using the changeset viewer.