xmonader / nimassets

bundle your assets into single nim file inspired by go-bindata
MIT License
60 stars 7 forks source link

'compresslevel' flag error #15

Open matkuki opened 1 year ago

matkuki commented 1 year ago

Using -t:zstd with the --compresslevel:<x> flag works, while with the -cl:<x> flag it skips whatever is selected, it's always 3.

weh commented 11 months ago

i see the problem:

if you use -cl=4 it will use the default of 3

nimassets -t=zstd -cl=4 -d=templatesdir -o=file.nim
templatesdir/chatapp.html ... zstd-level:3 ... build_string ... ok
templatesdir/index.html ... zstd-level:3 ... build_string ... ok

you have to use --cl=4

nimassets -t=zstd --cl=4 -d=templatesdir -o=file.nim
templatesdir/chatapp.html ... zstd-level:4 ... build_string ... ok
templatesdir/index.html ... zstd-level:4 ... build_string ... ok

so the question is, do you want to change the short version e.g. from cl to just c or modify the help output to use two hyphens --cl