assume '- SYSINFO' when no other options are given
authorEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Sun, 27 Jun 2004 13:08:27 +0000 (13:08 +0000)
committerEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Sun, 27 Jun 2004 13:08:27 +0000 (13:08 +0000)
git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@1601 94cd875c-1c1d-0410-91d2-eb244daf1a30

util-vserver/src/vserver-info.c

index 9976e99..b64212d 100644 (file)
@@ -457,8 +457,9 @@ int main(int argc, char *argv[])
   }
 
   if (optind+2>argc) {
-    WRITE_MSG(2, "No vserver or tag give; please try '--help' for more information.\n");
-    exit(1);
+    execQuery("-", tgSYSINFO, 0, 0);
+    WRITE_MSG(2, "\nAssumed 'SYSINFO' as no other option given; try '--help' for more information.\n");
+    exit(0);
   }
 
   vserver = argv[optind];