;; Copyright (c) Daniel Borchmann. All rights reserved.
;; The use and distribution terms for this software are covered by the
;; Eclipse Public License 1.0 (http://opensource.org/licenses/eclipse-1.0.php)
;; which can be found in the file LICENSE at the root of this distribution.
;; By using this software in any fashion, you are agreeing to be bound by
;; the terms of this license.
;; You must not remove this notice, or any other, from this software.

(use 'clojure.tools.cli)

;;

(defn- run-repl []
  (clojure.main/repl :init #(use 'conexp.main)))

(let [options (cli *command-line-args*
                   (optional ["--load" "Load a given script"]))]
  (when (options :load)
    (use 'conexp.main)
    (load-file (options :load)))
  (when-not (or (options :load))
    (clojure.main/repl :init #(use 'conexp.main))))

;;

nil

;; Copyright (c) Daniel Borchmann. All rights reserved.
;; The use and distribution terms for this software are covered by the
;; Eclipse Public License 1.0 (http://opensource.org/licenses/eclipse-1.0.php)
;; which can be found in the file LICENSE at the root of this distribution.
;; By using this software in any fashion, you are agreeing to be bound by
;; the terms of this license.
;; You must not remove this notice, or any other, from this software.

(use 'clojure.tools.cli)

;;

(defn- run-repl []
  (clojure.main/repl :init #(use 'conexp.main)))

(let [options (cli *command-line-args*
                   (optional ["--load" "Load a given script"]))]
  (when (options :load)
    (use 'conexp.main)
    (load-file (options :load)))
  (when-not (or (options :load))
    (clojure.main/repl :init #(do (use 'conexp.main) (use 'clojure.repl)))))

;;

nil

Load clojure.repl when started as interactive repl
Load clojure.repl when started as interactive repl

Signed-off-by: Daniel Borchmann <25857343a15bf1edafebc2912e82ecf775c585c1@mailbox.tu-dresden.de>

Lobage/conexp-clj,Lobage/conexp-clj,exot/conexp-clj,fcatools/conexp-clj,fcatools/conexp-clj,exot/conexp-clj,exot/conexp-clj,fcatools/conexp-clj,exot/conexp-clj,fcatools/conexp-clj,Lobage/conexp-clj,fcatools/conexp-clj,exot/conexp-clj,Lobage/conexp-clj