[Solo] try parsing arguments even when superuser access is required
This makes possible to print possible parser error messages without requiring superuser credentials.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user