fix parse_args conflict

This commit is contained in:
Christophe Benz 2010-12-13 16:18:23 +01:00
commit e9ede31053
9 changed files with 14 additions and 12 deletions

View file

@ -125,7 +125,7 @@ class WetBoobs(ReplApplication):
Get current weather for specified city. Use the 'search' command to find
its ID.
"""
city, = self.parse_args(line, 1, 1)
city, = self.parse_command_args(line, 1, 1)
_id, backend_name = self.parse_id(city)
for backend, current in self.do('get_current', _id, backends=backend_name):
if current:
@ -144,7 +144,7 @@ class WetBoobs(ReplApplication):
Get forecasts for specified city. Use the 'search' command to find
its ID.
"""
city, = self.parse_args(line, 1, 1)
city, = self.parse_command_args(line, 1, 1)
_id, backend_name = self.parse_id(city)
for backend, forecast in self.do('iter_forecast', _id, backends=backend_name):
self.format(forecast)