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 "EZGit is a simple interface for working with git repositories.\n\nUsage:\n ezgit [<options>] <commands>\n - or -\n ez [<options>] <commands>\n - or -\n eg [<options>] <commands>\n - or -\n gt [<options>] <commands>\n\n commands are:\n\#{subcommand_help_list}\n options are:\n"
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
|