Re: [dev][ii][patch] Allow calling ii without any argument (using defaults)

From: Jean-Philippe Gagné Guay <jeanphilippe150_AT_gmail.com>
Date: Thu, 1 May 2014 11:29:05 -0400

On 01/05/14 07:34, Evan Gates wrote:
> On Wed, Apr 30, 2014 at 11:20 PM, Jean-Philippe Gagné Guay
> <jeanphilippe150_AT_gmail.com> wrote:
> > ii could be called without any argument, using the defaults described in the
> > manpage.
> >
> > - if (argc <= 1 || (argc == 2 && argv[1][0] == '-' && argv[1][1] == 'h')) usage();
> > + if (argc < 1 || (argc == 2 && argv[1][0] == '-' && argv[1][1] == 'h')) usage();
>
> When called with no arguments argc would be 1. By convention this
> initial argument is the name of the file that was executed but can be
> anything, read exec(3,3p) for more information.
>
> -emg
>

I am not sure I understand why this would be wrong. Shouldn't calling ii (via
ii or not) without arguments use the default values descibed in the man page?
Received on Thu May 01 2014 - 17:29:05 CEST

This archive was generated by hypermail 2.3.0 : Thu May 01 2014 - 17:36:06 CEST