Re: [dev][ii][pull request] Allow calling ii without any argument (using defaults)
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 less 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