Re: implicit :required behavior in Tools.cli is deceptive

2014-05-16 Thread guns
On Thu 15 May 2014 at 10:45:52AM -0700, Bob Larrick wrote: > > A single element in the cli-options can be as brief as > > ["-p" "--port" "A port number"] > > What is non-obvious is that specifying > > "--port PORT" > > has entirely different semantics than specifying > > "--port" Like I mentioned

implicit :required behavior in Tools.cli is deceptive

2014-05-15 Thread Bob Larrick
A single element in the cli-options can be as brief as ["-p" "--port" "A port number"] What is non-obvious is that specifying "--port PORT" has entirely different semantics than specifying "--port" In the first case the command "lein run -p 3000" will result in an options map of {:options