[Tutor] Argparse functions with N parameters
Danilo Chilene
bicofino at gmail.com
Thu Jun 6 15:08:37 CEST 2013
Hello,
It's ok to revive a old thread? :)
I finished my script (https://github.com/bicofino/Pyora) using argparse.
But I have a question, today I'm connecting to the database outside the
class Check, what's the best way to connect passing the arguments using
argparse and run a function.
Today it work like this:
# Check Oracle version
0: python pyora.py version
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
I was thinking that is better pass the database
arguments(username,password,address,database)
it would run like this:
python pyora.py username,password,address,database version
Any thoughts?
Best Regards,
Danilo
On Wed, May 8, 2013 at 10:31 AM, Danilo Chilene <bicofino at gmail.com> wrote:
> <snip>
>
> That solves my issue.
>
> Thanks Peter.
>
> To unsubscribe or change subscription options:
>
>> http://mail.python.org/mailman/listinfo/tutor
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20130606/1e9fda73/attachment.html>
More information about the Tutor
mailing list