Issue 13 · Nov 2–8, 2026Editions · Glossary · Archive · Method · RSS · HU / ENG

News of the AI era, curated weekly

Glossary › Developer basics

command-line switch

in English: command-line flag / command-line option

basicwidespread

A short notation written after a command, usually starting with a hyphen, used to tell the program how to operate differently from the default.

In plain terms

When you order coffee in a café, 'coffee' is the command, and 'with lactose-free milk, to go' are the switches. You ask for the same thing, just specifying how it should be prepared. A command-line switch does the same with a program: you write one or two short markers after the program name, and it runs differently.

The command line has no buttons, checkboxes, and menus. What you would click together in the Settings menu of a windowed program, you enter here with switches. "--help" for example prints the help, and "--version" shows which version is on your machine.

You will encounter two types of switches. One simply turns something on or off, like a light switch, while the other also expects a value, such as a filename or a number. This matters for AI tools because many coding agents are launched from the command line, and a switch determines which model the agent uses or what it can do without asking for permission.

How it works

  1. Type the program name, followed by the flags separated by spaces, for example: "program --nyelv hu --csendes".
  2. When Enter is pressed, the line breaks into words, and the pieces reach the program sequentially. On Linux and macOS, the command interpreter (the shell) does this; on Windows, it is usually the program itself.
  3. The program reviews the items. Anything starting with a hyphen is treated as a switch. After a single hyphen, a one-letter short form usually follows (-v); after two, a descriptive long form (--verbose). On Windows, many of the system's own commands use a forward slash (/?).
  4. If the switch expects a value, the program reads the word immediately following it or the part after the equals sign, for example "--model=large".
  5. The program overrides its default settings according to the switches and runs accordingly. If it receives an unknown switch, it typically stops with an error message and shows the correct usage.

An everyday example

You want to try an AI tool, and the installation guide asks you to enter: 'pip install --upgrade package_name'. Here, '--upgrade' is the switch: without it, the installer would leave the existing older version untouched; with it, the latest version replaces the old one.

Who is affected

developerUsed daily, as it also adjusts the behavior of compilers, test runners, version control tools and coding agents via switches. → Code
parent, student, teacherAnyone learning or teaching programming encounters switches in the first installation guide and must understand what they are entering. → Education & Family
entrepreneur, executiveIt may depend on a single switch whether an agent running at the company requests permission before every step or can modify files independently.
everyoneIf a forum or chatbot advises you to paste a command, the switches reveal what it actually does to your machine.

A common misconception

MythSwitches mean the same thing in every program, so it is enough to learn them once.
In realityThere are only conventions, no mandatory rules: "-v" means detailed output in one program and version number in another. The help file of the specific program is always authoritative.

Limits and risks

Similar, but not the same

Related concepts

Broader

command line, command-line interface, terminal

Narrower

short flag, long option, help toggle

On the edge

parancssori argumentum, environment variable, configuration file, alparancs, coding agent

A brief history

The convention of switches starting with a hyphen spread in the early 1970s with the Unix operating system. The more descriptive, double-hyphen long form later became common through GNU project programs.

Where things stand

It has been a core element of developer tools for decades. Since late 2026, coding agents run from the command line mean that people who have never opened a terminal now encounter it too.

Status: 2026 November

In the news

Appears in 92 Agent Age stories; the curve shows weekly occurrence in the news magazine.

Also known as

switch · command-line option · command-line parameter · flag · command-line flag · command-line option · CLI flag · switch

Sources

This entry was machine-edited and has undergone machine expert review; the “In the news” section updates automatically from Agent Age stories.