Skip to content

lsd: unexpected argument '-f' found #1181

Description

@georgettica
  • os:
  • lsd --version: 1.2.0
  • echo $TERM: screen-256color
  • echo $LS_COLORS: di=1;36:ln=35:so=32:pi=33:ex=31:bd=34;46:cd=34;43:su=30;41:sg=30;46:tw=30;42:ow=30;43

Expected behavior

when running lsd -f it doesn't work (a shorthand of lsd -a -U)

Actual behavior

flag does not exist

$ lsd -f
error: unexpected argument '-f' found

  tip: to pass '-f' as a value, use '-- -f'

Usage: lsd [OPTIONS] [FILE]...

For more information, try '--help'.
$ lsd -- -f
lsd: -f: No such file or directory (os error 2).

Additional Data

I can write it myself, just want to know if this is something intentional that was left off

I want it as twice cursor code wrote ls -f and I alias ls=lsd so it errors out and I need to write a local rule that will treat ls as lsd in the code

data is taken from

 $ \ls --version
ls (GNU coreutils) 9.9
Copyright (C) 2025 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Richard M. Stallman and David MacKenzie.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions