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

From: Evan Gates <evan.gates_AT_gmail.com>
Date: Thu, 1 May 2014 07:34:10 -0700

Hi Jean-Philippe,

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
Received on Thu May 01 2014 - 16:34:10 CEST

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