>>107564928
I learned how to parse command line arguments in eshell.
(info "(eshell) Defining New Built-ins")
https://www.gnu.org/software/emacs/manual/html_node/eshell/Defining-New-Built_002dins.html
(defun eshell/grid (&rest args)
"Display images in a grid."
(interactive)
(eshell-eval-using-options
"grid"
args
`((?w "width" t --width "maximum width of an image (default 350)")
:show-usage
:usage "[OPTION]... [IMAGE]...\n\nDisplay images in a grid.")
(let* ((max-width (if --width (string-to-number --width) 350))
Comment too long. Click here to view the full text.