LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


View Poll Results: Which is the most Slackware-like option?
The -h option (the program should recommend -h when started without any option specified). 1 100.00%
The --help option (the program should recommend --help when started with -h or without any option). 0 0%
The "no" option (the program should display list of options only when started without any option). 0 0%
The "rtfm" option (the program should point to manual or info, without options or examples). 0 0%
Voters: 1. You may not vote on this poll

Closed Thread
  Search this Thread
Old 05-30-2021, 02:49 AM   #1
elcore
Senior Member
 
Registered: Sep 2014
Distribution: Slackware
Posts: 1,754

Rep: Reputation: Disabled
Which is the best command line option to get a help menu?


In Slackware, there's many programs with their helpful lists of command line options.
For the most part, they don't have a standard way to display the help menu.

So what I want to ask, why can't they all agree that -h is faster and easier to type?
Having a -h that just recommends typing --help, or info $program, well that isn't very helpful.

What do you think, which of those should be considered a Slackware standard?
 
Old 05-30-2021, 03:23 AM   #2
Exaga
SARPi Maintainer
 
Registered: Nov 2012
Distribution: Slackware AArch64
Posts: 1,043

Rep: Reputation: 665Reputation: 665Reputation: 665Reputation: 665Reputation: 665Reputation: 665
Quote:
Originally Posted by elcore View Post
In Slackware, there's many programs with their helpful lists of command line options.
For the most part, they don't have a standard way to display the help menu.

So what I want to ask, why can't they all agree that -h is faster and easier to type?
Having a -h that just recommends typing --help, or info $program, well that isn't very helpful.

What do you think, which of those should be considered a Slackware standard?
I generally refer to the man pages for help info. Although -h and --help are available as options in a lot of software it's not always the case and Slackware includes work from a great many different people and sources. So, I wouldn't say there was a Slackware "help menu standard" because not all software developers create their software with Slackware standards in mind. Some software I use with Slackware doesn't include a man page. For me it's more a case of finding out and learning what's required with any software and remembering it for the next time I use it.
 
Old 05-30-2021, 03:35 AM   #3
elcore
Senior Member
 
Registered: Sep 2014
Distribution: Slackware
Posts: 1,754

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Exaga View Post
For me it's more a case of finding out and learning what's required with any software and remembering it for the next time I use it.
But you do agree that remembering to consult the manual is easier than remembering exactly which one requires -h and which one requires something else?
I'm serious about this: it's not the lack of standard that bothers me, just the recent push for standard where traditionally there weren't any standard to begin with.
 
Old 05-30-2021, 03:47 AM   #4
Martinus2u
Member
 
Registered: Apr 2010
Distribution: Slackware
Posts: 497

Rep: Reputation: 119Reputation: 119
At the end of the day, a distro only packages applications, so it hasn't got a say in the matter (other than selection and compiler options).
 
Old 05-30-2021, 04:00 AM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,783

Rep: Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936Reputation: 5936
There are many standards i.e POSIX, ANSI C, LSB and GNU are a few. Many linux programs were based on BSB which is POSIX but have GNU extensions.

One would hope a developer will follow a standard but since there are thousands of programs out there some dating back to the beginning it isn't practical IMHO to have a slackware standard.
 
1 members found this post helpful.
Old 05-30-2021, 04:06 AM   #6
Exaga
SARPi Maintainer
 
Registered: Nov 2012
Distribution: Slackware AArch64
Posts: 1,043

Rep: Reputation: 665Reputation: 665Reputation: 665Reputation: 665Reputation: 665Reputation: 665
Quote:
Originally Posted by elcore View Post
But you do agree that remembering to consult the manual is easier than remembering exactly which one requires -h and which one requires something else?
I'm serious about this: it's not the lack of standard that bothers me, just the recent push for standard where traditionally there weren't any standard to begin with.
The only thing I'd agree with is that it's not within my remit, or jurisdiction, as an end-user to influence how Slackware developers should build/create/manage their software. Sure, I have a lot of ideas and pipe-dreams about what could or should be, but that's usually a casual desire to change something to make it easier for myself. IMO there's nothing wrong with the way Slackware currently implements any help menus and info. So, 'if it's not broked don't fix it' is the mainstay of my mentality. On a completely subjective facetious level I could suggest that, "Today, Slackware is the most UNIX-like distribution of them all. Tomorrow, Slackware could be the most Ubuntu-like distribution of them all!"

As you've mentioned, there are standards and traditions, which Slackware has always supported and maintained. Any push for change needs to be implemented due to essential conditions or necessity, and that's down to the Slackware developers to consider.
 
1 members found this post helpful.
Old 05-30-2021, 04:33 AM   #7
elcore
Senior Member
 
Registered: Sep 2014
Distribution: Slackware
Posts: 1,754

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Exaga View Post
casual desire to change something to make it easier for myself
That's how all great software was started.

Quote:
Originally Posted by Exaga View Post
IMO there's nothing wrong with the way Slackware currently implements any help menus and info.
Agreed, it's been the same for as long as I remember, some programs do one thing and some programs do the other thing.
Likewise, I think some distributions do one thing and some distributions do the other thing, so they should continue to do so independently of one another.
And not be forced to do that one thing just because all the big distributions have already done it, you know?

Quote:
Originally Posted by Exaga View Post
Tomorrow, Slackware could be the most Ubuntu-like distribution of them all!
I'm staying optimist about it, not going to live long enough for this to happen but I guess some will welcome the change with open arms.
 
Old 05-30-2021, 04:58 AM   #8
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,077

Rep: Reputation: Disabled
Only Patrick is entitled to publish a Slackware specification , which of course only the utilities written specifically for Slackware would have to comply to, so I won't vote.

I have written a few utilities for Slint, most usable on Slackware, and usually display a help file if user types just the name of the utility without arguments but it needs at least one, or if user types a non-supported option or argument.

I have looked into the Utility Conventions of the POSIX specification and didn't find anything about a help text.

Anyway a semi-skilled user should be able to find the help information typing just the command or with -h or --help, or in the man page, or in the info page, or in the documentation for this utility so personally I don't bother.

Last edited by Didier Spaier; 05-30-2021 at 05:00 AM.
 
Old 05-30-2021, 05:06 AM   #9
elcore
Senior Member
 
Registered: Sep 2014
Distribution: Slackware
Posts: 1,754

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Didier Spaier View Post
I have written a few utilities for Slint, most usable on Slackware, and usually display a help file if user types just the name of the utility without arguments but it needs at least one, or if user types a non-supported option or argument.
Thank you for not making -h a requirement when --help is specified, or the other way around.
 
  


Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Which option needs to be set to execute a command as a different user using the "su" command? (long version of the option) DarkBrainsDecoder Linux - Newbie 10 10-19-2022 01:24 PM
RHCA or LPIC or any other linux certification, which is best option to get job babadedge Linux - Certification 7 06-27-2013 09:52 AM
grab the line below a blank line and the line above the next blank line awk or perl? Pantomime Linux - General 7 06-26-2008 08:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration