Re: [PATCH 1/7] kill: make options --pid and --queue mutually exclusive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 12 April 2014 16:57, Bernhard Voelker <mail@xxxxxxxxxxxxxxxxxxx> wrote:
> On 04/12/2014 12:28 PM, Sami Kerola wrote:
>> +                     if (ctl->use_sigval)
>> +                             errx(EXIT_FAILURE, _("%s and %s are mutually exclusive"), "--pid", "--queue");
>
> Ain't this a good case for
>   err_exclusive_options(c, longopts, excl, excl_st);

Hello Berny,

Yes if kill would use getopts_long(). The kill should probably have
long options, but that is a different change than mutual option
exclusion.

-- 
Sami Kerola
http://www.iki.fi/kerolasa/
--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux