Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Updated demo program

  • Loading branch information...
commit 9ace812a3b50485757e0e6c5a938e6b61dd44a6a 1 parent c0a3493
@tatsuhiro-t authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  README.txt
  2. +1 −1  demo.clj
View
2  README.txt
@@ -14,7 +14,7 @@ Sample code:
{:prog "prog", :description "Process some integers."}
(add-argument "integers" {:metavar "N", :type Integer, :nargs "+"
:help "an integer for the accumulator"})
- (add-argument "--sum" {:dest "accumulate", :action :store-const,
+ (add-argument "--sum" {:dest :accumulate, :action :store-const,
:const +, :default max
:help "sum the integers (default: find the max)"}))))
(println (apply (args :accumulate) (args :integers)))
View
2  demo.clj
@@ -7,7 +7,7 @@
{:prog "prog", :description "Process some integers."}
(add-argument "integers" {:metavar "N", :type Integer, :nargs "+"
:help "an integer for the accumulator"})
- (add-argument "--sum" {:dest "accumulate", :action :store-const,
+ (add-argument "--sum" {:dest :accumulate, :action :store-const,
:const +, :default max
:help "sum the integers (default: find the max)"}))))
(println (apply (args :accumulate) (args :integers)))
Please sign in to comment.
Something went wrong with that request. Please try again.