REGISTER-PYTHON-ARGCOMPLETE(1)
π REGISTER-PYTHON-ARGCOMPLETE π
okay so bestie, welcome to register-python-argcomplete, a lil User Commands situation from the register-python-argcomplete manual β it's the argcomplete utility script and it is literally here to make your tab-completion dreams come true β¨
π NAME π
register-python-argcomplete β the argcomplete utility script π¦
πΈ DESCRIPTION πΈ
here's the usage, no cap:
usage: register-python-argcomplete [-h] [--no-defaults]
[--complete-arguments ...] [-s {bash,tcsh}]
executable
so what does it even do?? it registers a Python executable for use with the argcomplete module π
and to actually perform that registration, you source the output of this script in your bash shell β and quote the output to avoid interpolation, okay?? that part matters, don't skip it π
example time, here's the bash vibe:
$ eval "$(register-python-argcomplete my-favorite-script.py)"
and for Tcsh:
$ eval `register-python-argcomplete --shell tcsh my-favorite-script.py`
β¨ positional arguments: β¨
executableβ the executable that gets completed, but ONLY when it's invoked by exactly this name π
π optional arguments: π
-h,--helpβ shows this help message and dips. iconic behavior fr fr--no-defaultsβ when no matches get generated, do NOT fall back to readline's default completion. it's giving "I'll handle it myself" π--complete-arguments ...β the arguments you want to call complete with. heads up bestie: using this option discards the default options π-s {bash,tcsh},--shell {bash,tcsh}β spits out code for whichever shell you picked π
π AUTHORS π
the argcomplete module was written by Andrey Kislyuk β legend behavior, we love to see it π«Ά
π SEE ALSO π
the full documentation for the argccomplete module is stored at https://argcomplete.readthedocs.org/en/latest/ β go read it, iykyk π
and that's the whole page, bestie!! this was register-python-argcomplete version 1.8.1, dated January 2017, and yes it's still serving main character energy πβ¨ bye ily π
π¦ where this page comes from
- ubuntu jammy: python3-argcomplete 1.8.1-1.5 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms