@sumanthvepa

argparse is maybe-okay for simple things, but I don't use it for pretty much anything anymore. Have you tried one of the other extant packages that provide higher-level, more-powerful option handling?

I use `click` extensively for complex multiple-command CLI tools.

#click #optparse #argparse #CLI

【Python3.14】getoptとoptparseが非推奨でなくなった - Qiita

Pythonにはコマンドライン引数をパースする標準モジュールがgetopt・optparse・argparseの3種類あります。 このうちoptparseは14年も前の2011/02/20にリリースされた3.2から非推奨になっています。 そしてgetoptは先日2024/1...

Qiita
Optparseの基本的な使い方について - Qiita

はじめに今回はOptparseとは何か、Optparseの基本的な使い方について記載していきます。OptparseとはOptparseとはコマンドラインでのオプションを取り扱うためのライブラリ…

Qiita
🌗 Python有什麼新動向?GIL被移除,新編譯器,optparse被棄用...
➤ Python將移除GIL,LPython是一個新的Python編譯器,Pydantic 2變得更好用,getopt和optparse被軟棄用,Cython 3.0釋出,支援更好的純Python,PEP 722提出了單文件腳本的依賴規範。
https://www.bitecode.dev/p/whats-up-python-the-gil-removed-a
Python將移除GIL;LPython是一個新的Python編譯器;Pydantic 2變得更好用;PEP 387定義了"軟棄用",getopt和optparse被軟棄用;Cython 3.0釋出,支援更好的純Python;PEP 722提出了單文件腳本的依賴規範。
+ 這些新動向對Python開發者來說真是太棒了!特別是移除GIL和新的編譯器,這將帶來更好的性能和更多的選擇。
+ 我很期待Pydantic 2的使用,它的速度提升將對我的項目有很大的幫助。另外,PEP 722的提案
#Python #GIL #編譯器 #optparse
What's up, Python? The GIL removed, a new compiler, optparse deprecated...

July 2023

Bite code!

#optparse is a #publicdomain dependencyless #getopt.

optparse is a command line option parser that functions in a similar manner to getopt. optparse does not use global state, allowing for subcommands and restarting of the parser in a reliable way. optparse provides both short and long option parsing, option permuting, and capturable errors.

Website 🔗️: https://github.com/skeeto/optparse

#free #opensource #foss #fossmendations #programming

GitHub - skeeto/optparse: Portable, reentrant, getopt-like option parser

Portable, reentrant, getopt-like option parser. Contribute to skeeto/optparse development by creating an account on GitHub.

GitHub