Dict args

This commit is contained in:
Kload 2012-10-06 17:25:09 +02:00
parent a24ba260c3
commit f32ee5c854
2 changed files with 3 additions and 3 deletions

View file

@ -2,4 +2,4 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
def user_list(args): def user_list(args):
print vars(args) print args

View file

@ -3,7 +3,7 @@
import sys import sys
import argparse import argparse
sys.path.append('lib') sys.path.append('lib') # Local temporary hack
# Version of YunoHost # Version of YunoHost
version = '2.0' version = '2.0'
@ -133,7 +133,7 @@ parsers['user_list'].add_argument(
args = parser.parse_args() args = parser.parse_args()
def main(args): def main(args):
args.func(args) args.func(vars(args))
if __name__ == '__main__': if __name__ == '__main__':
main(args) main(args)