Lines Matching full:mode
20 -m= , --mode= specify the mode use {report, patch, org, context, chain}
31 mode = report
43 -m=*|--mode=*)
44 MODE="${i#*=}"
108 if [ "$MODE" = "" ] ; then
109 echo 'You have not explicitly specified the mode to use. Using default "report" mode.'
111 echo 'You can specify the mode with "./scripts/coccicheck --mode=<mode>"'
113 MODE="report"
116 if [ "$MODE" = "chain" ] ; then
117 echo 'You have selected the "chain" mode.'
119 elif [ "$MODE" = "report" -o "$MODE" = "org" ] ; then
125 echo 'When using "patch" mode, carefully review the patch before submitting it.'
153 elif [[ $VIRTUAL != *"$MODE"* ]]; then
154 echo "Invalid mode \"$MODE\" supplied!"
158 MODE=report
160 MODE=context
162 MODE=patch
164 MODE=org
166 echo "Using random available mode: \"$MODE\""
181 if [ "$MODE" = "patch" ] ; then
183 elif [ "$MODE" = "report" ] ; then
185 elif [ "$MODE" = "context" ] ; then
187 elif [ "$MODE" = "org" ] ; then
205 if [ "$MODE" = "chain" ] ; then
214 elif [ "$MODE" = "rep+ctxt" ] ; then
220 run_cmd_parmap $SPATCH -D $MODE $FLAGS --cocci-file $COCCI $OPT $OPTIONS || exit 1
223 MODE=report