~technomancy/fennel

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
1

[PATCH] Support short version flag (-v)

Details
Message ID
<20210422153759.769-1-jackhill@jackhill.us>
DKIM signature
missing
Download raw message
Patch: +1 -0
* src/launcher.fnl: Match on -v in addition to --version to print the
version information.

This change aligns the behavior with the documentation.
---
 src/launcher.fnl | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/launcher.fnl b/src/launcher.fnl
index 0a71299..1b97d42 100644
--- a/src/launcher.fnl
+++ b/src/launcher.fnl
@@ -226,6 +226,7 @@ Run fennel, a lisp programming language for the Lua runtime.
  [:--eval form] (eval form)
  [:-e form] (eval form)
  [:--version] (print (.. "Fennel " fennel.version " on " _VERSION))
  [:-v] (print (.. "Fennel " fennel.version " on " _VERSION))
  [:--help] (print help)
  [:-h] (print help)
  ["-" & args] (dosafely fennel.eval (io.stdin:read :*a))
-- 
2.31.1
Details
Message ID
<87tunq75zn.fsf@whirlwind>
In-Reply-To
<20210422153759.769-1-jackhill@jackhill.us> (view parent)
DKIM signature
missing
Download raw message
Jack Hill <jackhill@jackhill.us> writes:

> * src/launcher.fnl: Match on -v in addition to --version to print the
> version information.

Thanks but it looks like someone beat you to this; sorry!

-Phil
Reply to thread Export thread (mbox)