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 -*-
def user_list(args):
print vars(args)
print args

View file

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