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 <bicof...@gmail.com> wrote:

> <snip>
>
> That solves my issue.
>
> Thanks Peter.
>
> To unsubscribe or change subscription options:
>
>> http://mail.python.org/mailman/listinfo/tutor
>>
>
>
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to