So somehow I missed Ariel and your earlier messages, but I'm poking at this again now...
Ariel <asdeb...@dsgml.com> writes: > Just do -d instead of -t alsa and it will pick the output device > automatically. Nice. I hadn't noticed -d. > I would structure it like this: > > If nothing is passed to -b then use -d in sox, and -o is ignored. I had thought that getopt() supported "-b [foo]" style arguments, but I must have misremembered. It looks like it only supports "-b[foo]". If we want "-b [foo]", I'll need to specify "b" to getopt (no colons) and handle any subsequent oss|alsa value manually (increment optind, etc.). That works -- or we can just require -balsa/-boss. Other possibilities: saytime -b alsa|oss|default # common case is more verbose than I'd like saytime -b alsa|oss # -b argument mandatory saytime -s # use default system device (i.e. sox -d) > Make a note in the man page that -o requires -b and error if -o is > used without -b. For backward compatibility, I imagine we shouldn't require -o, and should just default to oss when -b isn't specified. Of course, if we didn't have to worry about backward compatibility at all, it'd be nicest to have saytime default to sox -d whenever -b and -o aren't specified, since that's probably more portable. In any case, I should be able to finish this fairly quickly once we know what we want. Thanks -- Rob Browning rlb @defaultvalue.org and @debian.org GPG as of 2002-11-03 14DD 432F AE39 534D B592 F9A0 25C8 D377 8C7E 73A4 -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org