# docopt: A brief introduction

DevFeed: [docopt: A brief introduction](<https://devfeed.tech/articles/docopt-a-brief-introduction-40679.md>)

Original publisher: [Read original article](<https://radek.io/posts/docopt/>)

Published: 2015-01-19T00:00:00Z

Content type: tutorial

Language: en

Sources: [Radek Pazdera](<https://devfeed.tech/sources/radek-pazdera.md>)

Topics: [Parsing](<https://devfeed.tech/topics/parsing.md>), [Command-line interface](<https://devfeed.tech/topics/cli.md>), [Parser](<https://devfeed.tech/topics/parser.md>), [Programming](<https://devfeed.tech/topics/programming.md>), [Code](<https://devfeed.tech/topics/code.md>)

Tags: [boilerplate](<https://devfeed.tech/tags/boilerplate.md>), [c](<https://devfeed.tech/tags/c.md>), [code](<https://devfeed.tech/tags/code.md>), [command-line](<https://devfeed.tech/tags/command-line.md>), [go](<https://devfeed.tech/tags/go.md>), [java](<https://devfeed.tech/tags/java.md>), [language](<https://devfeed.tech/tags/language.md>), [parsing](<https://devfeed.tech/tags/parsing.md>), [php](<https://devfeed.tech/tags/php.md>), [programming-languages](<https://devfeed.tech/tags/programming-languages.md>), [python](<https://devfeed.tech/tags/python.md>), [ruby](<https://devfeed.tech/tags/ruby.md>), [rust](<https://devfeed.tech/tags/rust.md>)

## AI overview

This article introduces docopt, a declarative language for describing command-line interfaces through usage-style specifications. It explains how implementations generate argument parsers, process options and arguments, and return the parsed results, with examples and ports for multiple programming languages.

## Source excerpt

The biggest advancement in argument parsing in the last 40 years