Command line option



software
(Or “option”, “flag”, “switch”, “option switch”) An argument to a command that modifies its function rather than providing data. Options generally start with “-” in Unix or “/” in MS-DOS. This is usually followed by a single letter or occasionally a digit. More recently, GNU software adopted the –longoptionname style, usually in addition to traditional, single-character, -x style equivalents.
Some commands require each option to be a separate argument, introduced by a new “-” or “/”, others allow multiple option letters to be concatenated into a single argument with a single “-” or “/”, e.g. “ls -al”. A few Unix commands (e.g. ar, tar) allow the “-” to be omitted. Some options may or must be followed by a value, e.g. “cc prog.c -o prog”, sometimes with and sometimes without an intervening space.
getopt and getopts are commands for parsing command line options. There is also a C library routine called getopt for the same purpose.
(2007-02-18)

Tagged:

Read Also:

  • Commandment

    [kuh-mand-muh nt, -mahnd-] /kəˈmænd mənt, -ˈmɑnd-/ noun 1. a or mandate. 2. (sometimes initial capital letter) any of the Ten Commandments. 3. the act or power of . /kəˈmɑːndmənt/ noun 1. a divine command, esp one of the Ten Commandments of the Old Testament 2. (literary) any command n. late 13c., “an order from an […]

  • Commandments

    [kuh-mand-muh nt, -mahnd-] /kəˈmænd mənt, -ˈmɑnd-/ noun 1. a or mandate. 2. (sometimes initial capital letter) any of the Ten Commandments. 3. the act or power of . /kəˈmɑːndmənt/ noun 1. a divine command, esp one of the Ten Commandments of the Old Testament 2. (literary) any command n. short for The Ten Commandments, attested […]



  • Command-module

    noun 1. (often initial capital letters) U.S. Aerospace. the portion of the Apollo spacecraft that contained the crew’s living compartment and the on-board controls. noun 1. the cone-shaped module used as the living quarters in an Apollo spacecraft and functioning as the splashdown vehicle

  • Commando

    [kuh-man-doh, -mahn-] /kəˈmæn doʊ, -ˈmɑn-/ noun, plural commandos, commandoes. 1. 2. any military unit organized for operations similar to those of the commandos of World War II. 3. a member of a military assault unit or team trained to operate quickly and aggressively in especially urgent, threatening situations, as against terrorists holding hostages. /kəˈmɑːndəʊ/ noun […]



Disclaimer: Command line option definition / meaning should not be considered complete, up to date, and is not intended to be used in place of a visit, consultation, or advice of a legal, medical, or any other professional. All content on this website is for informational purposes only.