You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since the script name getter method have been change here du to this issue #51
from name = name or sys.argv[0] to name = name or os.path.basename(sys.argv[0])
The completion script don't work anymore on linux: ./myscript.py is replaced by myscript.py
The text was updated successfully, but these errors were encountered:
When you generate a completion script, the last line of the script is something like complete -F _complete-examplepy example.py
If the command you're using to run the script is just example, then you can change that final line to complete -F _complete-examplepy example and completion should resume working for you.
If you want this to be the case automatically in the generated completion scripts, you can set name='example' in your call to Fire.
If you think we can handle the default case better where no name is provided better, I'm open to ideas.
Since the script name getter method have been change here du to this issue #51
from
name = name or sys.argv[0]
toname = name or os.path.basename(sys.argv[0])
The completion script don't work anymore on linux:
./myscript.py
is replaced bymyscript.py
The text was updated successfully, but these errors were encountered: