Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

-t option is tricky #78

Closed
sbatial opened this issue Jul 29, 2023 · 1 comment
Closed

-t option is tricky #78

sbatial opened this issue Jul 29, 2023 · 1 comment
Labels
help wanted Extra attention is needed needs feedback

Comments

@sbatial
Copy link
Collaborator

sbatial commented Jul 29, 2023

So I don't think there is a way to make -t the same as in ls.
I don't say it is impossible.
But the best implementation I have right now does work but nevertheless eats the next argument, even if it starts with a -.

The core problem(s) seem(s) to be: -t is not really a shorthand in ls but a dedicated option which is equivalent to --time=modified. And our parser can currently not represent shortform-only options.

I'll have to think about what the best way forward is in my eyes but my gut is that the best way of getting such a feature to work is to make changes to the parser first to have it support short options without a long form.

@cafkafk
Copy link
Member

cafkafk commented Jul 29, 2023

I'll have to think about what the best way forward is in my eyes but my gut is that the best way of getting such a feature to work is to make changes to the parser first to have it support short options without a long form.

This sounds non trivial, I changed the pr to a draft for now.

@eza-community eza-community locked and limited conversation to collaborators Aug 28, 2023
@cafkafk cafkafk converted this issue into discussion #179 Aug 28, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
help wanted Extra attention is needed needs feedback
Projects
None yet
Development

No branches or pull requests

2 participants