Complete.Org: Mailing Lists: Archives: offlineimap: July 2002:
Re: rev 164 - in offlineimap/head: . debian offlineimap
Home

Re: rev 164 - in offlineimap/head: . debian offlineimap

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: offlineimap@xxxxxxxxxxxx
Subject: Re: rev 164 - in offlineimap/head: . debian offlineimap
From: Martijn Pieters <mj@xxxxxxxx>
Date: Mon, 22 Jul 2002 16:57:00 -0400

On Mon, Jul 22, 2002 at 03:48:17PM -0500, jgoerzen@xxxxxxxxxxxxxxxxxxxx wrote:
> +    if not '-1' in options:
> +        sys.stderr.write("FATAL: profile mode REQUIRES -1\n")
> +        sys.exit(100)

Yow. Why not just *set* -1 when -P is detected? That is the usual
convention; "When using this option, the -1 option is assumed".

A simple:

  if not '-1' in options: options.append('-1')

should suffice.

-- 
Martijn Pieters
| Software Engineer  mailto:mj@xxxxxxxx
| Zope Corporation   http://www.zope.com/
| Creators of Zope   http://www.zope.org/
---------------------------------------------


[Prev in Thread] Current Thread [Next in Thread]