Skip to content

Commit

Permalink
tweaked help layout
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-ward committed Jul 8, 2024
1 parent d24e807 commit aae82c7
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 12 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
24 changes: 12 additions & 12 deletions lsv/options.v
Original file line number Diff line number Diff line change
Expand Up @@ -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 <int>\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 <int>\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')
Expand All @@ -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('
Expand Down

0 comments on commit aae82c7

Please sign in to comment.