<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Fredrik Lundh wrote:
<blockquote cite="mide7rar8$851$1@sea.gmane.org" type="cite">
  <pre wrap="">Hari Sekhon wrote:

  </pre>
  <blockquote type="cite">
    <pre wrap="">I'm using optparse.Optionparser to take switches for a script I'm
writing, but I can't see how to give it -vv for very verbose.

the option for -v is simply set to True by the option parser if present,
whereas I really want a numeric value, 1 if there is -v and 2 if there
is -vv.
    </pre>
  </blockquote>
  <pre wrap=""><!---->
action="count" ?

</F> 



  </pre>
</blockquote>
yeah, I realised this just after I sent it, sort it out.<br>
<br>
Thanks.<br>
<br>
<br>
-h
</body>
</html>