about summary refs log tree commit diff
path: root/Completion
diff options
context:
space:
mode:
Diffstat (limited to 'Completion')
-rw-r--r--Completion/Unix/Command/.distfiles2
-rw-r--r--Completion/Unix/Command/_gphoto247
2 files changed, 48 insertions, 1 deletions
diff --git a/Completion/Unix/Command/.distfiles b/Completion/Unix/Command/.distfiles
index be652bdc9..8efe54c00 100644
--- a/Completion/Unix/Command/.distfiles
+++ b/Completion/Unix/Command/.distfiles
@@ -21,7 +21,7 @@ _netcat       _larch        _texinfo	  _figlet       _elinks       _tidy
 _global                     _ant          _lsof         _mt           _xmlsoft
 _perforce     _python       _antiword     _screen       _renice       _apm
 _ecasound     _gpg	    _subversion   _aap          _sablotron    _nmap
-_chmod        _du           _getent
+_chmod        _du           _getent       _gphoto2
 _nice	      _rar	    _vorbis
 _printenv
 '
diff --git a/Completion/Unix/Command/_gphoto2 b/Completion/Unix/Command/_gphoto2
new file mode 100644
index 000000000..95d8a49b7
--- /dev/null
+++ b/Completion/Unix/Command/_gphoto2
@@ -0,0 +1,47 @@
+#compdef gphoto2
+
+_arguments -s \
+  '--debug[turn on debugging]' \
+  '(-q --quiet)'{-q,--quiet}'[quiet output]' \
+  '(-v --version)'{-v,--version}'[display version and exit]' \
+  '(-h --help)'{-h,--help}'[display a short usage message]' \
+  '--list-cameras[list supported camera models]' \
+  '--list-ports[list supported port devices]' \
+  '--stdout[send file to stdout]' \
+  '--stdout-size[print filesize before data]' \
+  '--auto-detect[list auto-detected cameras]' \
+  '--port[specify port device]:port' \
+  '--speed[specify serial transfer speed]:speed' \
+  '--camera[specify camera model]:camera model' \
+  '--filename[specify pattern to save file as]:pattern' \
+  '--usbid[override USB IDs (expert only)]:usbid' \
+  '(-a --abilities)'{-a,--abilities}'[display camera abilities]' \
+  '(-f --folder)'{-f,--folder}'[specify camera folder]:folder' \
+  '(-R --recurse --no-recurse)'{-R,--recurse}'[recursion (default for download)]' \
+  '(-R --recurse)--no-recurse[no recursion (default for deletion)]' \
+  '(-l --list-folders)'{-l,--list-folders}'[list folders in folder]' \
+  '(-L --list-files)'{-L,--list-files}'[list files in folder]' \
+  '(-m --mkdir)'{-m,--mkdir}'[create a directory]:directory' \
+  '(-r --rmdir)'{-r,--rmdir}'[remove a directory]:directory' \
+  '(-n --num-files)'{-n,--num-files}'[sisplay number of files]' \
+  '(-p --get-file)'{-p,--get-file}'[get files given in range]:range' \
+  '(-P --get-all-files)'{-P,--get-all-files}'[get all files from folder]' \
+  '(-t --get-thumbnail)'{-t,--get-thumbnail}'[get thumbnails given in range]:range' \
+  '(-T --get-all-thumbnails)'{-T,--get-all-thumbnails}'[get all thumbnails from folder]' \
+  '(-r --get-raw-data)'{-r,--get-raw-data}'[get raw data given in range]:range' \
+  '--get-all-raw-data[get all raw data from folder]' \
+  '--get-audio-data[get audio data given in range]:range' \
+  '--get-all-audio-data[get all audio data from folder]' \
+  '--delete-files[delete files given in range]:range' \
+  '--delete-all-files[delete all files in folder]' \
+  '(-u --upload-file)'{-u,--upload-file}'[upload a file to camera]:file:_files' \
+  '--capture-preview[capture a quick preview]' \
+  '--capture-image[capture an image]' \
+  '--capture-movie[capture a movie]' \
+  '--capture-sound[capture an audio clip]' \
+  '--show-info[show info about given range]:range' \
+  '--summary[summary of camera status]' \
+  '--manual[camera driver manual]' \
+  '--about[show information about the camera driver]' \
+  '--shell[start the gphoto2 shell]'
+