mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
Dict args
This commit is contained in:
parent
a24ba260c3
commit
f32ee5c854
2 changed files with 3 additions and 3 deletions
|
@ -2,4 +2,4 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
def user_list(args):
|
def user_list(args):
|
||||||
print vars(args)
|
print args
|
||||||
|
|
4
yunohost
4
yunohost
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue