class Controller:
db = {1: 'foo', 2: 'bar'}
def index(self):
return self.db.keys()
def detail(self, key):
return self.db[key]
c = Controller()
parser.add_commands([c.index, c.detail])
Argh should omit argument self while introspecting methods.
Static methods should work, too.
Note: This issue has been automatically migrated from Bitbucket
Created by @neithere on 2013-01-09 20:55:13+00:00, last updated: 2013-01-10 03:29:44+00:00
Use case:
Argh should omit argument
self
while introspecting methods.Static methods should work, too.
Note: This issue has been automatically migrated from Bitbucket Created by @neithere on 2013-01-09 20:55:13+00:00, last updated: 2013-01-10 03:29:44+00:00