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

2014-05-01 Thread Jean-Philippe Gagné Guay
On 01/05/14 11:36, Evan Gates wrote: > On Thu, May 1, 2014 at 8:29 AM, Jean-Philippe Gagné Guay > wrote: > > 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? > > My point is th

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

2014-05-01 Thread Evan Gates
On Thu, May 1, 2014 at 8:29 AM, Jean-Philippe Gagné Guay wrote: > 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? My point is that argc will never be less than 1 (AFAIK). If you want to u

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

2014-05-01 Thread Jean-Philippe Gagné Guay
On 01/05/14 07:34, Evan Gates wrote: > On Wed, Apr 30, 2014 at 11:20 PM, Jean-Philippe Gagné Guay > 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')) usag

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

2014-05-01 Thread Evan Gates
Hi Jean-Philippe, On Wed, Apr 30, 2014 at 11:20 PM, Jean-Philippe Gagné Guay 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 || (

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

2014-04-30 Thread Jean-Philippe Gagné Guay
ii could be called without any argument, using the defaults described in the manpage. diff --git a/ii.c b/ii.c index d93266c..0816009 100644 --- a/ii.c +++ b/ii.c @@ -466,7 +466,7 @@ int main(int argc, char *argv[]) { } snprintf(nick, sizeof(nick), "%s", spw->pw_name); snpr