[PATCH] Allow specifying server in configuration file

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

 



On Tue, Apr 3, 2018 at 3:37 PM, Max Rees <maxcrees at me.com> wrote:
> On Apr 03 01:29 PM, Daniel Lenski wrote:
>> I think you should also check for the converse case of a
>> *double-specified* server (where the user specifies --server and an
>> argument with no option).
>> It'd be something like (optind < argc && vpninfo->hostname).
>
> What should be the behavior in this situation? An error message or
> should it accept one or the other as the server to use?

I'd say it should be an error ("explicit is better than implicit"),
but BDFL David Woodhouse should tell me if I'm wrong. :-D

Dan



[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux