JanetDocsPlaygroundI'm feeling luckyGitHub sign in

*args*



    keyword
    boot.janet on line 3787, column 1

    Dynamic bindings that will contain command line arguments at 
    program start.


1 exampleSign in to add an example
Loading...
# use (dyn :args) to get the value of dynamic binding *args*
(let [args (dyn :args)]
  (if (= "-h" (get args 1))
    (print "Usage: janet args.janet [-h] ARGS..")
    (printf "command line arguments:\n %q" args)))
AndriamanitraPlayground