[examples/ls] Improve comments.

This commit is contained in:
Lorenzo Cogotti 2022-12-15 19:37:04 +01:00
parent b62adb2316
commit b30a6e19cb
1 changed files with 7 additions and 1 deletions

View File

@ -11,6 +11,12 @@
-- lua ls.lua -a -h src
-- lua ls.lua -a -t a.dir b.dir c.dir
--
-- Supported options:
-- -a list hidden files
-- -t sort by time, most recent first
-- -S sort by size, largest first
-- -h print size next to each file in kilobytes (1024)
--
-- Author: Lorenzo Cogotti, The DoubleFourteen Code Forge
local osx = require 'osx'
@ -87,7 +93,7 @@ local function listfilenames(filenames, bufs, total)
if hflag then
write(ksize(buf.size or 0), " ")
end
write(filename, '\n')
write(filename, "\n")
end
end