The 'args' library (version 0.1.0) by Kenneth Reitz is a minimalistic command-line argument parser designed to simplify access to arguments, flags, and assignments. Released in 2012, it provides a very basic interface for parsing command-line inputs. The library is considered abandoned, with its GitHub repository marked as an archive, and is no longer actively maintained. [2, 5]
pip install argsVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to import and use the 'args' library to access various categories of command-line inputs such as all arguments, flags (prefixed with '--'), file-like arguments, and key-value assignments.
This library is not compatible with Python 3. For modern Python, use the standard library `argparse` or a well-maintained third-party alternative. If absolutely necessary, adapt to Python 2 or manually port relevant code sections.
Migrate to `argparse` (Python standard library) for robust command-line parsing, or consider other actively maintained libraries like `click` or `docopt` for more advanced CLI applications. [3, 11]
Do not expect `args` to provide the rich functionality of `argparse`. Understand its limited parsing capabilities. For anything beyond basic argument inspection, `argparse` is the recommended standard. [9, 11]
This library is fundamentally Python 2. Using it in Python 3 requires either a Python 2 environment or a significant rewrite of the library to update `print` statements and other potential incompatibilities. It is generally recommended to use modern alternatives.
Access arguments via the provided collections (`args.all`, `args.flags`, `args.assignments`). For structured argument parsing with named arguments, use Python's built-in `argparse` module, which allows defining specific arguments and accessing them by name. [9, 11]
No dependency data recorded yet.
No resource links recorded.