Bug 866537

Summary: inappropriate message when giving wrong number of arguments
Product: Red Hat Enterprise Virtualization Manager Reporter: Gal Leibovici <gleibovi>
Component: ovirt-engine-cliAssignee: Michael Pasternak <mpastern>
Status: CLOSED INSUFFICIENT_DATA QA Contact: Oded Ramraz <oramraz>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 3.1.0CC: bazulay, dyasny, ecohen, edolinin, iheim, Rhev-m-bugs, ykaul
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: infra
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-10-18 08:31:32 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Infra RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Gal Leibovici 2012-10-15 15:11:43 UTC
Description of problem:
When giving wrong number of arguments to rhevm-shell it gives an error message,
then the welcome shell message and  then (shell disconnected).

I think it should only print an error message and quit.

Reproduce:
connect to rhevm-shell and give an additional parameter, "" in the middle

Expected:
Error message about number of arguments and quit

Actual:
Error message, welcome message then disconnect message and finally quit.

Comment 1 Michael Pasternak 2012-10-16 06:30:45 UTC
(In reply to comment #0)
> 
> Actual:
> Error message, welcome message then disconnect message and finally quit.

iiuc you trying connect to the shell from linux specifying arguments 
incorrectly,

in this case all true but "finally quit", cause you enter to the shell (this is 
the reason for the welcome message), but in /disconnected mode,

and the reason for entering shell is so you can see detail help
for /connect command (all mentioned above is by-design)