Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3360498
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T02:59:58+00:00 2026-05-18T02:59:58+00:00

Greetings to my revered experts! I’m writing a command line tool(similar to ls or

  • 0

Greetings to my revered experts!

I’m writing a command line tool(similar to ls or cat or uname etc) and I was wondering if there’s a best-practice to order the arguments in the usage statement.

I’m confused because, ls‘s usage statement prints arguments in alphabetical order, where as cat‘s usage statement does not!

Try cat --help and ls --help.

Can you refer me to some documentation too, if there is a standard?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T02:59:59+00:00Added an answer on May 18, 2026 at 2:59 am

    Ha, standard! No, certainly nothing like that. Pick your favorite, whichever looks nice and is organized well and is on everyone’s computer already, and mimic it.

    My opinions follow:

    • I don’t see any value in alphabetical.
    • Order it logically, arranged into categories and put useful stuff first.
    • Make sure the parsing engine is solid and “standard”, preferably using someone else’s. Boost’s Program Options or Python’s optparse are good if they’re in the right language for you. Most other languages have some too.
    • Make sure to include many examples that span the gamut of use.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Greetings, I'm trying to find either a free .NET library or a command-line executable
Greetings Overflowers, Is there an SQL DBMS that allows me to create an indexed
Greetings, Trying to sort through the best way to provide access to my Entity
Greetings! I'm trying to have a UIWebView controlled from generated events. Is there a
Greetings all. I am writing some code using the Boost Units library and have
Greetings all, Is there any issue in the following logic for allocating 2D array:
Greetings, I've taken over from a prior team and writing ETL jobs which process
Greetings Everyone. I'm currently writing a multi-language programe in C, C++ and fortran on
Greetings all, Is there a built in way to know when a user is
Greetings, I'm confused as to the best approach to make when consuming REST based

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.