argparse Python. , , " bash ", , "python".
- python:
Python script:
me@here:~/test$ chmod u+x argparsetest.py
, "python":
me@here:~/test$ ./argparsetest.py<TAB>
argparsetest.py result.png u1.py
me@here:~/test$ ./argparsetest.py -i<TAB>
argparsetest.py result.png u1.py
bash
complete -r
, , ~/.bashrc /etc/bashrc, , , :
if [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi