4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
# File 'lib/ezgit/ezgit_command.rb', line 4
def self.options(subcommand_names, subcommand_help_list)
return Trollop::options do
version Ezgit::VERSION
banner <<-HELP_DESCRIPTION
EZGit is a simple interface for working with git repositories.
Usage:
ezgit [<options>] <commands>
- or -
ez [<options>] <commands>
- or -
eg [<options>] <commands>
- or -
gt [<options>] <commands>
commands are:
#{subcommand_help_list}
options are:
HELP_DESCRIPTION
opt :dry_run, 'Makes all commands passive.', short: '-n'
opt :force, 'Forces all prompting off. Use ! at end of command name to do the same.', short: '-f', default: false
opt :debug, 'Shows command level debug info.', short: '-d'
stop_on subcommand_names
end
end
|