<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">Unless I misunderstand your needs, you could just use raw_input(prompt) to get your answers.<BR><BR>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">----- Original Message ----<BR>From: "james@reggieband.com" <james@reggieband.com><BR>To: python-list@python.org<BR>Sent: Sunday, April 13, 2008 11:12:06 AM<BR>Subject: Module to read input from commandline<BR><BR>Hi all,<BR><BR>I did some quick searching but I haven't found anything like I want.<BR>It probably has to do with the terms I am searching for so if I<BR>describe what I want then I hope someone can point me to a good<BR>module.<BR><BR>I want to take input from the user at the command line. e.g.)<BR>Would you like to continue [Y/n]: y<BR>What is your favorite color: green<BR>....<BR><BR>You get the idea.  Basic question answer stuff.  It should handle<BR>default options, case insensitivity, etc.  Perhaps the module would<BR>compare the inputted text against a regexp for validation.  If the<BR>module had an interface similar to OptParse
 that would be nice.<BR><BR>Anyone know of a decent module that handles this type of thing?<BR>Writing from scratch would be simple but why re-invent the wheel.<BR><BR>Cheers,<BR>James.<BR>-- <BR><A href="http://mail.python.org/mailman/listinfo/python-list" target=_blank>http://mail.python.org/mailman/listinfo/python-list</A><BR></DIV><BR></DIV></div><br>__________________________________________________<br>Do You Yahoo!?<br>Tired of spam?  Yahoo! Mail has the best spam protection around <br>http://mail.yahoo.com </body></html>