vmm
changeset 62 869de537a020
parent 61 d85482575349
child 63 9b627307f4a8
--- a/vmm	Sat Aug 23 22:25:21 2008 +0000
+++ b/vmm	Sun Aug 24 04:57:11 2008 +0000
@@ -45,7 +45,8 @@
 
     u_body = """\
   da    domainadd          domain.tld        transport*
-  di    domaininfo         domain.tld        detailed*
+  di    domaininfo         domain.tld        accounts*|aliasdomains*|aliases*
+                                             |full*
   dt    domaintransport    domain.tld        transport force*
   dd    domaindelete       domain.tld        delalias*|deluser*|delall*
   ada   aliasdomainadd     aliasdomain.tld   domain.tld
@@ -205,11 +206,19 @@
     elif argc < 4:
         _printInfo(vmm.domainInfo(argv[2].lower()), _('Domain'))
     else:
-        infos = vmm.domainInfo(argv[2].lower(), argv[3])
+        details = argv[3].lower()
+        infos = vmm.domainInfo(argv[2].lower(), details)
         _printInfo(infos[0], _('Domain'))
-        _printList(infos[1], _('alias domains'))
-        _printList(infos[2], _('accounts'))
-        _printList(infos[3], _('aliases'))
+        if details == 'accounts':
+            _printList(infos[1], _('accounts'))
+        elif details == 'aliasdomains':
+            _printList(infos[1], _('alias domains'))
+        elif details == 'aliases':
+            _printList(infos[1], _('aliases'))
+        else:
+            _printList(infos[1], _('alias domains'))
+            _printList(infos[2], _('accounts'))
+            _printList(infos[3], _('aliases'))
 
 def domain_transport():
     if argc < 3: