[caffe] 01/01: script/caffe: update bash completion script
Zhou Mo
cdluminate-guest at moszumanska.debian.org
Wed Aug 10 14:35:23 UTC 2016
This is an automated email from the git hooks/post-receive script.
cdluminate-guest pushed a commit to branch master
in repository caffe.
commit d08d71b332a93e4b1366e7017af1ee69747b4cba
Author: Zhou Mo <cdluminate at gmail.com>
Date: Wed Aug 10 14:35:09 2016 +0000
script/caffe: update bash completion script
---
debian/changelog | 1 +
debian/script/caffe | 9 +++++++--
2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index be49d00..856822e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -6,6 +6,7 @@ caffe (1.0.0~rc3+20160715-g42cd785-2) UNRELEASED; urgency=medium
* Add patch fix-more-float-comparison-precision-issue, which fixes
the float comparison precision problem in some of the unit tests.
* Update manpage with new command line options added.
+ * Update bash completion script with command line option changes.
-- Zhou Mo <cdluminate at gmail.com> Tue, 09 Aug 2016 14:52:30 +0000
diff --git a/debian/script/caffe b/debian/script/caffe
index 4f62922..8a0b22a 100644
--- a/debian/script/caffe
+++ b/debian/script/caffe
@@ -3,6 +3,7 @@
# License: BSD-2-Clause
# Originally appeard at https://github.com/BVLC/caffe/issues/3149
+# Updated for caffe (1.0.0~rc3+20160715-g42cd785)
_caffe()
{
local cur prev words cword
@@ -13,7 +14,7 @@ _caffe()
local solverstates='@(solverstate)'
local caffefiles='@(prototxt|caffemodel|solverstate)'
- local flags='-gpu -iterations -model -snapshot -solver -weights -sighup_effect -sigint_effect'
+ local flags='-gpu -iterations -model -snapshot -solver -weights -sighup_effect -sigint_effect -level -stage -phase'
if [[ $cword -eq 1 ]]; then
COMPREPLY=( $( compgen -W 'train test time device_query' -- "$cur" ) )
@@ -33,7 +34,7 @@ _caffe()
fi
case $prev in
- -gpu|-iterations|-version)
+ -gpu|-iterations|-version|-level|-stage)
return 0
;;
-solver|-model)
@@ -52,6 +53,10 @@ _caffe()
COMPREPLY=( $( compgen -W 'snapshot stop none' -- "$cur") )
return 0
;;
+ -phase)
+ COMPREPLY=( $( compgen -W 'TRAIN TEST' -- "$cur") )
+ return 0
+ ;;
*)
COMPREPLY=( $( compgen -W "$flags" -- "$cur") )
return 0
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/caffe.git
More information about the debian-science-commits
mailing list