On Wed, Aug 8, 2012 at 7:02 PM, Lennart Poettering
<lenn...@poettering.net> wrote:
> On Mon, 06.08.12 11:43, shawn (shawnland...@gmail.com) wrote:
>
>> -                case '?':
>> -                        return -EINVAL;
>> -
>>                  default:
>> -                        log_error("Unknown option code %c", c);
>> +                        log_error("Unknown option code '%c'", c);
>>                          return -EINVAL;
>>                  }
>
> Hmm, but this would result in one message by getopt() itself and one by
> us in case the user uses an unknown switch, no?
>
> I'd like to turn off that getopt() internal message, but I am not sure
> there is a way....

leading : in optstring?

Kay
_______________________________________________
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to