Alon Bar-Lev has posted comments on this change.

Change subject: extensions test tool: logger
......................................................................


Patch Set 13:

(1 comment)

https://gerrit.ovirt.org/#/c/37886/13/backend/manager/modules/uutils/src/main/java/org/ovirt/engine/core/uutils/cli/parser/ParametersParser.java
File 
backend/manager/modules/uutils/src/main/java/org/ovirt/engine/core/uutils/cli/parser/ParametersParser.java:

Line 50:     }
Line 51: 
Line 52:     public Map<String, Object> parse(String[] args, boolean isModule) 
throws Exception {
Line 53:         return parse(new ArrayList<String>(Arrays.asList(args)), 
isModule);
Line 54:     }
> it's xxx -arg1 -arg2 module action -arg3 -arg4
I still do not follow...

we agree that first is ok, right?

 first:
  --arg
  --arg2
  others: module action --arg3 --arg4

 second: (I remove the module and action)
   --arg3
   --arg4

so now we discuss how we parse module?

module is the others[0] of first.

how we parse action?

action is the others[1] of first.

we can send others of first to module so it can parse its name (ignore in most 
cases) and its action, then parse others[3:]

in any case the parser should not care.
Line 55: 
Line 56:     public Map<String, Object> parse(List<String> args, boolean 
isModule) throws Exception {
Line 57:         String usage = "core";
Line 58:         List<Object> others = new ArrayList<>();


-- 
To view, visit https://gerrit.ovirt.org/37886
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: Ie06113c5d56a49e58d557c851f9ff00b9a9ca409
Gerrit-PatchSet: 13
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Ondřej Macháček <[email protected]>
Gerrit-Reviewer: Alon Bar-Lev <[email protected]>
Gerrit-Reviewer: Ondra Machacek <[email protected]>
Gerrit-Reviewer: Ondřej Macháček <[email protected]>
Gerrit-Reviewer: [email protected]
Gerrit-Reviewer: mooli tayer <[email protected]>
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: Yes
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to