Skip to main content

whattheflag banner

PyPI Python License Build

Lightweight CLI tool for instantly explaining command-line flags without digging through man pages

whattheflag helps you understand command-line flags and options for many popular CLI tools directly in your terminal.

Simply prepend whattheflag to a command to see what its flags mean.


Features

  • Explain command-line flags for many popular CLI tools
  • Understand copied shell commands by translating their flags
  • Expand combined short flags (e.g. -fsSL)
  • Show both short and long flag versions when available
  • Display explanations in a clean table format
  • Show all known flags for a specific tool

Installation

pip install whattheflag

Usage

All functionality is available through the command line interface.

You can:

  • Search for a specific tool (whattheflag df)
  • Search for a specific flag or option (whattheflag curl -fsSL --help)
  • Display an overview of all available options (whattheflag tools)

Example Commands

Overview for a Tool

Shows all available flags and options for a tool.

whattheflag df
Flag Long Description
-a --all Include dummy filesystems
-B --block_size Specify block size
-h --human_readable Print sizes in human readable format
-i --inodes List inode information
--total Produce grand total
-T --type Print filesystem type

Explanation for a Specific Flag

Shows the meaning of the provided flags.

whattheflag curl -fsSL --help
Flag Long Description
-f --fail Fail silently on HTTP errors
-s --silent Silent mode, do not show progress
-S --show-error Show error even when using silent mode
-L --location Follow HTTP redirects
-h --help Show help for curl

List Supported Tools

Lists all supported tools.

whattheflag tools

Supported Tools

awk curl df docker
du find git grep
gzip jq kubectl nc
ps rsync sed ssh
tar top unzip wget
xargs yq zip

Metadata

Release files for whattheflag 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for whattheflag 0.1.2
File Size Uploaded Provenance
whattheflag-0.1.2.tar.gz 10.3 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for whattheflag 0.1.2
File Interpreter ABI Platform
whattheflag-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 28.7 kB

Release files / whattheflag-0.1.2.tar.gz

Download URL whattheflag-0.1.2.tar.gz
Size 10.3 kB
Tags Source
SHA-256 checksum
How to use checksums
83570ac509c32c1f9dce39d90e3ca7eed99b0033de174827eac04d7647a694ce
BLAKE2b-256 checksum
How to use checksums
32b0ef86103490d44afe74211908b85da57aa33936e75cf21b557a25e4f5c7fd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.10.8 {"installer":{"name":"uv","version":"0.10.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / whattheflag-0.1.2-py3-none-any.whl

Download URL whattheflag-0.1.2-py3-none-any.whl
Size 18.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2878cb72af58f5a647666d47e054b043aa1d7a3ea282751472fa7ced5cbcccee
BLAKE2b-256 checksum
How to use checksums
43e583f86faadf1f43c272dbeb9295511625982ff540fb05caaab6f8a814628a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.10.8 {"installer":{"name":"uv","version":"0.10.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for whattheflag 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page