You are viewing a single thread.
View all comments
32 points
*

Programmers generally detest to do documentation, so when the user help “UI” is all down to a programmer to define this is often what you get, especially if it’s a small tool.

permalink
report
reply
22 points

I never understood that. I’m a programmer and I tend to over-document.

permalink
report
parent
reply
14 points
16 points

Yeah this is shitty, and if you’re a programmer reading this and you agree with it, be better. There is no excuse for under-documenting a CLI.

Even when I’m developing, I write out my usage text first, like -o [json,csv,pretty] specify output format (default 'pretty') [NOT IMPLEMENTED] or the like.

permalink
report
parent
reply
6 points
*

Speaking for myself a long time ago when I was younger and handsomer but dumber ;) some people at a certain stage of their lives have trouble remembering that what’s obvious for oneself given the context one is in and the information one has, is not obvious for others.

I like to think most of us grow out of it.

permalink
report
parent
reply
4 points

I like to think most of us grow out of it.

Morgan Freeman: “But they didn’t”

permalink
report
parent
reply
5 points

If you use something like Rust’s clap --help output is very easy to add, all you need is basically a single line comment for each option.

permalink
report
parent
reply
13 points
*

Oh, you sweet summer child, there is no level of ease for the average programmer that will make him or her want to document things… ;)

On a more serious note, good documentation for parameters in any tool that’s not stupidly simple tends to be more than a one liner if one doesn’t assume that the user already knows a ton of context (for example, imagine explaining “chmod” parameters with just one liners)

permalink
report
parent
reply
2 points

You can write more than one line but one line is usually enough for each of the options in the --help output. Obviously that doesn’t explain everything and especially not background like “how do unix permissions work” in your example but the --help output is not the correct place for that kind of information anyway.

permalink
report
parent
reply
3 points

No idea why’d anyone would do this if they expected anyone besides them to use their tool.

permalink
report
parent
reply
1 point
*

Even I myself am not gonna remember how to use my tool a couple months down the line, unless it’s something I use very regularly.

Edit: noticed I read the comment I’m replying to wrong, reworded to make more sense

permalink
report
parent
reply

linuxmemes

!linuxmemes@lemmy.world

Create post

I use Arch btw


Sister communities:
Community rules
  1. Follow the site-wide rules and code of conduct
  2. Be civil
  3. Post Linux-related content
  4. No recent reposts

Please report posts and comments that break these rules!

Community stats

  • 7.5K

    Monthly active users

  • 1.2K

    Posts

  • 66K

    Comments