'How can I get autocomplete arguments before ENTER?
There is a file argComp.py in Ubuntu 14.04 LTS. I install argcomplete 1.0.0 module successfully.
chmod +x argComp.py
and then
data = [ name1 : { address1 : [Korea, Seoul ] }, name2 : { address2 : [ USA, LA ] } ]
./argComp.py --name [tab]
./argComp.py --name
name1 name2
./argComp.py --name name1 --address [tab]
Korea Seoul
I want read the my argument by realtime before the user presses ENTER. For this, the argcomplete module should read text name in --name name1, and then check data by name1.
I could I get data and make the --address list ?
I want to implement this concept to file browser realtime..
Please help, and thank you in advance.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
