Method: MGit::Forall#validate
- Defined in:
- lib/m-git/command/forall.rb
#validate(argv) ⇒ Object
31 32 33 34 |
# File 'lib/m-git/command/forall.rb', line 31 def validate(argv) Foundation.help!("输入非法参数:#{argv.git_opts}。请通过\"mgit #{argv.cmd} --help\"查看用法。") if argv.git_opts.length > 0 Foundation.help!("请输入必须参数--command,示例:mgit forall -c 'git status'") if argv.opt(OPT_LIST[:command]).nil? end |