From 12221f6e2ee7412be3d12a93683b4ef7ea95ff75 Mon Sep 17 00:00:00 2001 From: Fabio Erculiani Date: Sun, 30 Sep 2012 09:40:17 +0200 Subject: [PATCH] [Solo] try parsing arguments even when superuser access is required This makes possible to print possible parser error messages without requiring superuser credentials. --- client/solo/main.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client/solo/main.py b/client/solo/main.py index d4c8fe888..e297c57a1 100644 --- a/client/solo/main.py +++ b/client/solo/main.py @@ -321,5 +321,9 @@ def main(): raise SystemExit(exit_st) else: + # execute this anyway so that commands are + # incomplete or invalid, the command error + # message will take precedence. + _func, _func_args = cmd_obj.parse() print_error(_("superuser access required")) raise SystemExit(1)