diff --git a/data/scripts/gemget.lisp b/data/scripts/gemget.lisp index 3eb1aa3..67a1781 100644 --- a/data/scripts/gemget.lisp +++ b/data/scripts/gemget.lisp @@ -16,13 +16,15 @@ ;; usage: -;; echo URL | tinmop -e gemget.lisp +;; tinmop -e gemget.lisp -- URL or +;; echo "url" | tinmop -e gemget.lisp (in-package :scripts) (defun main () (handler-case - (let ((url (read-line *standard-input* nil nil nil))) + (let ((url (or (first command-line:*free-arguments*) + (read-line *standard-input* nil nil nil)))) (write-sequence (gemini-client:slurp-gemini-url url) *standard-output*) (os-utils:exit-program 0)) (usocket:ns-host-not-found-error (e) diff --git a/src/constants.lisp b/src/constants.lisp index 6023cb1..0201069 100644 --- a/src/constants.lisp +++ b/src/constants.lisp @@ -60,7 +60,7 @@ along with this program." -Welcome to ~a! A gemini, pleroma and kami client. +Welcome to ~a! A gemini, gopher, mastodon/pleroma and kami client. - for available keychords (sequence of keys to fire a command) help type '?'; @@ -87,7 +87,7 @@ Some useful keycords to start (the man page contains the full list): - 'b' go back in history of visited URLs - '!' search geminispace (contacts gemini://kennedy.gemi.dev/search) -· pleroma +· mastodon/pleroma - 'C-t u' update current timeline - 'C-t c' change timeline - 'v' view post's attachments