Method: MGit::Forall#options

Defined in:
lib/m-git/command/forall.rb

#optionsObject



18
19
20
21
22
23
24
25
26
27
28
29
# File 'lib/m-git/command/forall.rb', line 18

def options
  return [
      ARGV::Opt.new(OPT_LIST[:command],
                    short_key:OPT_LIST[:command_s],
                    info:'必须参数,指定需要执行的shell命令,如:"mgit forall -c \'git status -s\'"(注意要带引号)。',
                    type: :string),
      ARGV::Opt.new(OPT_LIST[:concurrent],
                    short_key:OPT_LIST[:concurrent_s],
                    info:'可选参数,若指定,则shell命令以多线程方式执行。',
                    type: :boolean)
  ].concat(super)
end