[latex3-commits] [latex3/l3sys-query] main: Shorten "--reverse-sort" to "--reverse" (c5196c1)

github at latex-project.org github at latex-project.org
Sun Mar 10 21:21:06 CET 2024


Repository : https://github.com/latex3/l3sys-query
On branch  : main
Link       : https://github.com/latex3/l3sys-query/commit/c5196c1dcc142d6b6f8b8df4966abca74af7858a

>---------------------------------------------------------------

commit c5196c1dcc142d6b6f8b8df4966abca74af7858a
Author: Joseph Wright <joseph at texdev.net>
Date:   Sun Mar 10 20:21:06 2024 +0000

    Shorten "--reverse-sort" to "--reverse"


>---------------------------------------------------------------

c5196c1dcc142d6b6f8b8df4966abca74af7858a
 l3sys-query.lua | 4 ++--
 l3sys-query.tex | 6 +++---
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/l3sys-query.lua b/l3sys-query.lua
index 6428871..860905b 100755
--- a/l3sys-query.lua
+++ b/l3sys-query.lua
@@ -86,7 +86,7 @@ local option_list =
         short = "r",
         type  = "boolean"
       },
-    ["reverse-sort"] =
+    reverse =
       {
         cmds = {"ls"},
         desc = "Reversing sorting order",
@@ -507,7 +507,7 @@ function cmd_impl.ls(arg_list)
     end
   end
 
-  if options["reverse-sort"] then
+  if options.reverse then
     sort(s,function(a,b) return case(a) > case(b) end)
   else
     sort(s,function(a,b) return case(a) < case(b) end)
diff --git a/l3sys-query.tex b/l3sys-query.tex
index 61a372c..9bbe96c 100644
--- a/l3sys-query.tex
+++ b/l3sys-query.tex
@@ -107,7 +107,7 @@ As well as these targets, the script recognizes the options
     than converting from wildcards
   \item |--recursive| (|-r|) Enables recursive searching during directory
     listings
-  \item |--reverse-sort| Causes sorting to go from highest to lowest rather
+  \item |--reverse| Causes sorting to go from highest to lowest rather
     than lowest to highest
   \item |--sort| Sets the method used to sort entries returned by |ls|
   \item |--type| Selects the type of entry returned by |ls|
@@ -163,8 +163,8 @@ obtained using
 The results returned by |ls| can be sorted using the |--sort| option. This can
 be set to |none| (use the order from the file system: the default), |name| (sort
 by file name) or |date| (sort by date last modified). The sorting order can be
-reversed using |--reverse-sort|. Sorting normally takes account of case: this
-can be suppressed with the |--ignore-case| option.
+reversed using |--reverse|. Sorting normally takes account of case: this can be
+suppressed with the |--ignore-case| option.
 
 The listing can be filtered based on the type of entry using the |--type|
 option. This takes a string argument, one of |d| (directory) or |f| (file).





More information about the latex3-commits mailing list.