{"issue":{"state":"open","pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"milestone":null,"user":{"avatar_url":"https://secure.gravatar.com/avatar/1138264617123981b6fa43c8392ed774?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"1138264617123981b6fa43c8392ed774","url":"https://api.github.com/users/sjm","login":"sjm","id":9282},"labels":[],"updated_at":"2011-11-17T20:10:24Z","assignee":null,"closed_at":null,"comments":3,"url":"https://api.github.com/repos/clojure/tools.cli/issues/4","body":"I'm using tools.cli 0.2.0 on Windows 7.\r\n\r\n```clojure\r\n(ns test.test\r\n  (:use clojure.tools.cli))\r\n\r\n(let [[options args banner] (cli [\"--faux\" \"bar\"]\r\n                                 [\"-h\" \"--help\" \"Show help\" :default false :flag true]\r\n                                 [\"-f\" \"--faux\" \"The faux du fafa\"])]\r\n  (when (:help options)\r\n    (println banner)\r\n    (System/exit 0))\r\n  (println *command-line-args*)\r\n  (println options))\r\n```\r\n\r\noutputs:\r\n\r\n```\r\n(-h)\r\n{:help false, :faux bar}\r\n```","html_url":"https://github.com/clojure/tools.cli/issues/4","title":"tools.cli ignoring command line arguments","number":4,"id":2272143,"created_at":"2011-11-17T18:41:02Z"},"action":"created","comment":{"user":{"avatar_url":"https://secure.gravatar.com/avatar/73a88c930218067a0c98bdf8eb5608db?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"73a88c930218067a0c98bdf8eb5608db","url":"https://api.github.com/users/gar3thjon3s","login":"gar3thjon3s","id":5753},"updated_at":"2011-11-17T20:10:24Z","url":"https://api.github.com/repos/clojure/tools.cli/issues/comments/2781202","body":"You are not passing the *command-line-args* to the `cli` function so it never parses them, it is using the values you have hard-coded [\"--faux\" \"bar\"]. Try this instead:\r\n\r\n    (let [[options args banner] (cli *command-line-args*\r\n                                 [\"-h\" \"--help\" \"Show help\" :default false :flag true]\r\n                                 [\"-f\" \"--faux\" \"The faux du fafa\"])]\r\n     (when (:help options)\r\n       (println banner)\r\n       (System/exit 0))\r\n     (println *command-line-args*)\r\n     (println options))","id":2781202,"created_at":"2011-11-17T20:10:24Z"}}