diff options
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/Server/Admin/Reports.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/lib/Server/Admin/Reports.py b/src/lib/Server/Admin/Reports.py index cafc61e2d..22a3d3031 100644 --- a/src/lib/Server/Admin/Reports.py +++ b/src/lib/Server/Admin/Reports.py @@ -94,8 +94,13 @@ class Reports(Bcfg2.Server.Admin.Mode): c_list = Client.objects.all() result = list() - - opts, pargs = getopt(args, 'cd', ['sort=', 'fields=']) + + try: + opts, pargs = getopt(args, 'cdx:', ['sort=', 'fields=']) + except: + print "error" + print self.__shorthelp__ + raise SystemExit(1) for option in opts: if len(option) > 0: |