Currently:
Creating completion files with docopt-completion fails, when the user doesn't have the appropriate permissions.
confus@confusion:~$ docopt-completion ./decorator.py
Skipping file /usr/share/zsh/functions/Completion/_decorator.py, no permissions
Skipping file /etc/bash_completion.d/decorator.py.sh, no permissions
Proposed:
The program should try to place completion files in the user space directories (e.g. $HOME/.bash_completion.d for bash), when the above permisson error is detected or implement a --user-space option to specify/auto-detect these directories.