Commit d842f982 authored by Romain Bignon's avatar Romain Bignon

login and password arguments are needed

parent 4131cac7
......@@ -26,18 +26,18 @@ from bnporc.browser import BNPorc
def getparser():
parser = OptionParser(usage="%prog [options]")
parser.add_option('-u', '--username', help="Compte ID", type="str")
parser.add_option('-l', '--login', help="Compte ID", type="str")
parser.add_option('-p', '--password', help="Compte password", type="str")
return parser
if __name__ == '__main__':
parser = getparser()
options, arguments = parser.parse_args()
if arguments:
if arguments or not options.login or not options.password:
bnp = BNPorc(options.username, options.password)
bnp = BNPorc(options.login, options.password)
comptes = bnp.get_comptes_list()
print ' Compte Solde À venir '
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment