From aae82c703638324cab7b66a68ff3fcf2856f2a0d Mon Sep 17 00:00:00 2001 From: mike-ward Date: Mon, 8 Jul 2024 06:31:51 -0500 Subject: [PATCH] tweaked help layout --- CHANGELOG.md | 5 +++++ lsv/options.v | 24 ++++++++++++------------ 2 files changed, 17 insertions(+), 12 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fd12fff..49b57ec 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,11 @@ All notable changes to this project will be documented in this file. +## [Unreleased] +### Updated +- tweaked the help layout +- removed the last vestiages of line buffering + ## [2024.4] - 2024-07-07 ### Added - Optionally (-Z) truncate lines if too long. Show `≈` to indicate truncation diff --git a/lsv/options.v b/lsv/options.v index c30160b..2db1b32 100644 --- a/lsv/options.v +++ b/lsv/options.v @@ -87,11 +87,11 @@ fn parse_args(args []string) Options { with_commas := fp.bool('', `m`, false, 'list of files separated by commas') quote := fp.bool('', `q`, false, 'enclose files in quotes') recursive := fp.bool('', `R`, false, 'list subdirectories recursively') - recursion_depth := fp.int('depth', ` `, max_int, 'limit depth of recursion') list_by_lines := fp.bool('', `X`, false, 'list files by lines instead of by columns') - one_per_line := fp.bool('', `1`, false, 'list one file per line') + one_per_line := fp.bool('', `1`, false, 'list one file per line\n') - width_in_cols := fp.int('width', ` `, 0, 'set output width to \n\nFiltering and Sorting Options:') + recursion_depth := fp.int('depth', 0, max_int, 'limit depth of recursion') + width_in_cols := fp.int('width', 0, 0, 'set output width to \n\nFiltering and Sorting Options:') only_dirs := fp.bool('', `d`, false, 'list only directories') only_files := fp.bool('', `f`, false, 'list only files') dirs_first := fp.bool('', `g`, false, 'group directories before files') @@ -118,15 +118,15 @@ fn parse_args(args []string) Options { inode := fp.bool('', `N`, false, 'show inodes') no_wrap := fp.bool('', `Z`, false, 'do not wrap long lines\n') - checksum := fp.string('cs', ` `, '', 'show file checksum\n${flag.space}(md5, sha1, sha224, sha256, sha512, blake2b)') - no_count := fp.bool('no-counts', ` `, false, 'hide file/dir counts') - no_date := fp.bool('no-date', ` `, false, 'hide date (modified)') - no_dim := fp.bool('no-dim', ` `, false, 'hide shading; useful for light backgrounds') - no_group_name := fp.bool('no-group', ` `, false, 'hide group name') - no_hard_links := fp.bool('no-hard-links', ` `, false, 'hide hard links count') - no_owner_name := fp.bool('no-owner', ` `, false, 'hide owner name') - no_permissions := fp.bool('no-permissions', ` `, false, 'hide permissions') - no_size := fp.bool('no-size', ` `, false, 'hide file size\n') + checksum := fp.string('cs', 0, '', 'show file checksum\n${flag.space}(md5, sha1, sha224, sha256, sha512, blake2b)') + no_count := fp.bool('no-counts', 0, false, 'hide file/dir counts') + no_date := fp.bool('no-date', 0, false, 'hide date (modified)') + no_dim := fp.bool('no-dim', 0, false, 'hide shading; useful for light backgrounds') + no_group_name := fp.bool('no-group', 0, false, 'hide group name') + no_hard_links := fp.bool('no-hard-links', 0, false, 'hide hard links count') + no_owner_name := fp.bool('no-owner', 0, false, 'hide owner name') + no_permissions := fp.bool('no-permissions', 0, false, 'hide permissions') + no_size := fp.bool('no-size', 0, false, 'hide file size\n') fp.footer('