<< Back to previous view

[TCLI-7] summarize throws when called with an empty sequence of options Created: 17/Dec/13  Updated: 02/Jan/14  Resolved: 02/Jan/14

Status: Resolved
Project: tools.cli
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Defect Priority: Major
Reporter: Hugo Duncan Assignee: Sung Pae
Resolution: Completed Votes: 0
Labels: None


 Description   

When calling opt-parse with an empty sequence of options, summarize throws an exception.

actual: clojure.lang.ArityException: Wrong number of args (1) passed to: core$map
 at clojure.lang.AFn.throwArity (AFn.java:437)
    clojure.lang.RestFn.invoke (RestFn.java:412)
    clojure.lang.AFn.applyToHelper (AFn.java:161)
    clojure.lang.RestFn.applyTo (RestFn.java:132)
    clojure.core$apply.invoke (core.clj:619)
    clojure.tools.cli$summarize.invoke (cli.clj:375)

https://github.com/hugoduncan/tools.cli/compare/feature;fix-summary-no-options?expand=1



 Comments   
Comment by Sung Pae [ 02/Jan/14 1:32 AM ]

Thank you, patch applied!

I am sorry for the delay; I mistakenly thought I would receive email notifications on new issues so have not been polling JIRA.

I hope to ameliorate this soon.

Generated at Fri Jul 25 04:10:48 CDT 2014 using JIRA 4.4#649-r158309.