Discussion: change -h
to show --help
#321
Replies: 6 comments 1 reply
-
I don't have strong feelings either way (I tend to try |
Beta Was this translation helpful? Give feedback.
-
I don't mind the change for |
Beta Was this translation helpful? Give feedback.
-
Not sure whether the current goal is to keep flags consistent & portable across standard
That being said... If people are aliasing |
Beta Was this translation helpful? Give feedback.
-
Yeah, that's fair. I'm all for using
It may not even be necessary or applicable in the case of To play "devils advocate" and follow the "POSIX-compliant" argument to its logical conclusion: I went through the flags to check, and so far it looks like only I'm all for the |
Beta Was this translation helpful? Give feedback.
-
I'm generally very much in favour of having That being said.. As it completely changes an existing option (which some people are certainly using) it should be accompanied by an extra message (just at the top/bottom of the help text: please note. since vX.X.X |
Beta Was this translation helpful? Give feedback.
-
Description, and My View on This
In the realm of software development, user experience and intuitive design are
paramount. When users interact with a command-line tool, they often rely on
their prior knowledge and experience with other tools to guide their actions.
One of the most common expectations is that the
-h
flag will provide help orusage information. This expectation is so deeply ingrained that it's almost a
universal standard in many command-line utilities.
The current configuration of the
-h
flag in EZA is for--headers
. Whilethis might make sense from a functional standpoint, it can be a source of
confusion for many users, especially those who are accustomed to the
-h
flagbeing associated with help in other programs.
Here are some reasons to consider changing the
-h
flag to indicate "help":Consistency with Other Tools:
Many popular command-line utilities, such as
curl
,wget
, andgit
, use-h
as a shorthand for help. Aligning with this convention can make EZA moreuser-friendly and reduce the learning curve for new users.
Reduced User Frustration:
Imagine a scenario where a user, in need of assistance, instinctively types
-h
expecting help but instead gets an unexpected output or an error.This can be frustrating and might deter users from further exploring or using
EZA.
Ease of Discovery:
For many (including me),
-h
is the first flag they try when they're unsureabout a tool's usage. By aligning with this expectation, we ensure that users
can easily discover the tool's capabilities and how to use them.
EZA is shaking things up
Like our predecessor EXA, EZA makes some sensible changes regardless of
tradition. While there are historical precedents where tools like
ls
andgrep
don't use-h
for help, the modern trend and user expectation leanheavily towards
-h
being associated with help.In conclusion, by making this change, EZA can become more intuitive,
user-friendly, and aligned with the broader ecosystem of command-line
utilities.
That said, I know there are maintainers who disagree, thus, I think it's a good
idea to have a discussion thread for this so we can work towards a consensus
Refs: #285
Beta Was this translation helpful? Give feedback.
All reactions