Here snippet of my elips function:
(defun log-report (filePath uniqueText)
"Create log4j record report from any log4j (e.g.traceXXX.log) files. Log4j level MUST be in square brackets. e.g.: [DEBUG] Any text"
(interactive "sPlease, input full path to log4j file: \nsUnique text: ")
(message "\n\n\n\nInput path is %s" filePath)
(if (file-exists-p filePath)
(progn
(if (file-exists-p FINAL_REPORT_PATH)
I start terminal. Input 2 params and my function log-report start. Nice
But I want to pass all parameters immediately.
Something like this:
emacs --script log-report.el -f log-report "some_log_file" "some_find_text"
Without Emacs ask me about input params.
Is it possible?