News for hackers. Stuff that matters.
Re:12 Factor CLI Apps by Walkman on Tuesday October 09, 2018 @03:57AM (#18174080)

    Unless you already know your users will want man pages, I wouldn’t bother also outputting them as they just aren’t used often enough anymore.
I don't know where this is coming from, me and my colleagues are reading man pages every day. I would be interested how much others read them.
Re:12 Factor CLI Apps by kolme on Tuesday October 09, 2018 @04:04AM (#18174111)
I strongly disagree on this one too.

That's the first place I look for help and it annoys me to no end when a CLI program that doesn't come with one.

I stopped taking seriously the article at that point and quickly skimmed through the rest of it.

Man pages are a great unix culture heritage, please new developers don't give up on them!

Re:12 Factor CLI Apps by larkeith on Tuesday October 09, 2018 @06:37AM (#18174756)
Moreover, man pages serve as an essential resource that is much more reliably available than any other - when my network's routing packets in circles, the database server's on fire, and the duplicate has repeated the last transaction on every record, I don't care how "most users" don't use man pages or that web documentation is much more Google-able; I care that I have access to complete, detailed information (not the abbreviated version provided by --help) on all the utilities available to me; I care that apropos can help me recall the names of utilities I don't remember (something the article does not address); I care that I don't have to worry about having access to documentation, in addition to everything else, because it's all in a single, standardized, effective repository of man pages.

I really can't express strongly enough how much I disagree with the view that man pages are no longer relevant or necessary.

Re:12 Factor CLI Apps by davidhcefx on Tuesday October 09, 2018 @04:26AM (#18174188)
I myself also love reading man pages, but speaking of compatibility, I have to say that “--help” is a more universal way of showing help pages. Of course it’s better to have both of them though.
Re:12 Factor CLI Apps by larkeith on Tuesday October 09, 2018 @06:21AM (#18174665)
--help is fine, but almost never a substitute for a full man page, except for the most trivial of applications (unless your --help is as complete as a man page, in which case... good on you for providing full documentation, but I'll hate you a bit every time I unthinkingly drop two hundred lines of text in my terminal.)
Re:12 Factor CLI Apps by smarinov on Tuesday October 09, 2018 @09:11AM (#18175622)
Unless it just opens the man page if it is so long. Like git.
Re:12 Factor CLI Apps by JdeBP on Tuesday October 09, 2018 @09:14AM (#18175643)
I strongly suspect that --help is on the contrary less universal, given that there exist entire toolsets lacking the --help convention but having manual pages. There was almost a quarter of a century's worth of Unix tools that developed before --help was invented.

* https://unix.stackexchange.com/a/416796/5132

* https://unix.stackexchange.com/questions/207136/

Re:12 Factor CLI Apps by dickeytk on Wednesday October 10, 2018 @02:15PM (#18187504)
How can you say it's less universal when it doesn't work on windows?
Re:12 Factor CLI Apps by thrower123 on Tuesday October 09, 2018 @08:29AM (#18175334)
When man pages are good, they're good. When they are bad, they are super verbose, incomprehensible, sparse, or otherwise completely useless.
Re:12 Factor CLI Apps by maaaats on Tuesday October 09, 2018 @09:00AM (#18175529)
I never read man pages. If I need to check man, the tool failed in being user friendly. I'll then rather search online for what I need and blindly copy the first result on some stack exchange page..
Re:12 Factor CLI Apps by falcolas on Tuesday October 09, 2018 @09:25AM (#18175731)
If you can't immediately figure out how to properly set up and adjust a contractor's table saw, do you blame the table saw for being developed for professional contractors instead of newbies?

User friendlyness is a feature, and like all features it's not always worth adding to professional tools.

Re:12 Factor CLI Apps by deadbunny on Tuesday October 09, 2018 @07:45AM (#18175073)
> I don't know where this is coming from

From people who don't know how to use man pages.

Re:12 Factor CLI Apps by voltagex_ on Tuesday October 09, 2018 @09:32AM (#18175799)
BSD manpages or Linux manpages? There are very few Linux manpages that I'd consider acceptable.
Re:12 Factor CLI Apps by Arkanosis on Tuesday October 09, 2018 @06:42AM (#18174777)
man pages are the first place I'm looking in for flags for commands I know for years, or when I'm using new commands — and it's always a frustrating experience when they don't exist.

Please, always ship man pages with whatever you write. It's /easy/ to do and has a great added value.

PS: doc on the web is so often irrelevant… either too old, or too recent — and in the rare cases where it's properly versioned, the workflow is something like “cmd --version ; google cmd $version” instead of just “man cmd”, which is nowhere as convenient or reliable.

Re:12 Factor CLI Apps by mxuribe on Tuesday October 09, 2018 @09:10AM (#18175607)
Whether they're good or not, i feel manpages should ALWAYS be included every cli app. That being said, it is quite often that i begin my inquiry with manpages but then have to unfortunately look elsewhere for more info...specifically either a nice set of usage examples, or a bit more background on the "why" to use the cli app - in this order.
Re:12 Factor CLI Apps by chriswarbo on Tuesday October 09, 2018 @09:04AM (#18175553)
Nix commands show their man pages as their help, e.g. `nix-shell --help` is equivalent to `man nix-shell`. I think this works well, and reduces the burden of writing the same documentation over and over.
Re:12 Factor CLI Apps by wingerlang on Tuesday October 09, 2018 @07:31AM (#18174999)
As you're getting mostly replies agreeing - I never read man pages. I look up the odd parameter every now and then though.
Re:12 Factor CLI Apps by purerandomness on Tuesday October 09, 2018 @08:10AM (#18175224)
Do you mean you look up parameters somewhere else, e.g. in a web browser using google?
Re:12 Factor CLI Apps by wingerlang on Thursday October 11, 2018 @06:39AM (#18192315)
Pretty much, yes.