Merge branch 'master' of ssh+git://git.symlink.me/var/git/pub/juke/weboob

This commit is contained in:
Romain Bignon 2010-04-14 00:44:55 +02:00
commit 9c828733ab
5 changed files with 27 additions and 15 deletions

View file

@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
"""
Copyright(C) 2010 Romain Bignon
Copyright(C) 2010 Romain Bignon, Julien Hébert
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@ -85,7 +85,8 @@ class ConsoleApplication(BaseApplication):
nb_args = len(_args) - 1
if defaults:
nb_args -= len(defaults)
if len(args) < nb_args or len(args) > nb_args and not varargs:
if len(args) < nb_args and not varargs:
if varargs:
sys.stderr.write("Command '%s' takes at least %d arguments.\n" % (command, nb_args))
else: