-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
ls headers should be a flag #893
Comments
-h is usually for help |
How about We may also think about detecting an interactive shell and switching this kind of beautification off or on automatically. Personally I lean towards beautification on by default. |
You mean -q for "quiet" or for "quite"? It could be also -r for "raw", except if we want to keep it for "reverse" (like in the regular ls command). It can be disturbing when the output is different depending on the shell being interactive or not. It is often ok do desactivate colors, progress bars and asking questions when non interactive (and even then it could depend on people using pagers like less to look at the output), but otherwise I would not recommend it. |
wow. how did i... -- yeah, so
quiet is for reducing output to the bare essentials. in ls, I think default outputs should be a balance between comfort for new users, comfort for users who will use it all the time, and ease of scripting. after getting to know what the columns of
Entirely agreed. stdout output should not differ. It can be the source of much confusion. |
Ok for |
ipfs ls
recently learned to show headers:Which is great! :)
but it broke people's scripts :( -- and i think it should be opt-in.
This is a format change, and those should be done carefully, as they are liable to break other things or introduce subtle problems for users or programs. (I CRed this and didnt notice this, so it's my fault really.)
Let's:
-h, --header
or something similar)The text was updated successfully, but these errors were encountered: