Skip to main content

optioncomplete

Description

Command line tab completion for optparse

Installation

$ sudo pip3 install optioncomplete**

Example python code

import sys
from optparse import OptionParser
from optioncomplete import autocomplete
...
parser = OptionParser()
parser.add_option("-f", "--file", dest="filename",
                  help="write report to FILE", metavar="FILE")
parser.add_option("-q", "--quiet",
                  action="store_false", dest="verbose", default=True,
                  help="don't print status messages to stdout")
autocomplete(parser,sys.argv[0])
(options, args) = parser.parse_args()

Installation and usage in command line

Optioncomplete youtube

Release files for optioncomplete 2.7

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

Source distribution (sdist)

Source distribution for optioncomplete 2.7
File Size Uploaded
optioncomplete-2.7.tar.gz 3.6 kB Details

Release files / optioncomplete-2.7.tar.gz

Download URL optioncomplete-2.7.tar.gz
Size 3.6 kB
Tags Source
SHA-256 checksum
How to use checksums
86bc7ebbe2aa207650114621d566c25fa5a0ac81cf32e5bd073209c7063c751b
BLAKE2b-256 checksum
How to use checksums
7184395690602fa72e218efd40f8ee291352faefa01b86bb9ec847c305df01d3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

2.7 This release

1 release file

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