11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
# File 'lib/bumpversion/parser.rb', line 11
def mount_banner
version_number = VERSION
Optimist::Parser.new do
version "Bumpversion #{version_number} ☺"
usage "bumpversion [options] --part [major|minor|patch]
where [options] are:"
banner "\#{version}\n\nUsage:\n\#{usage}\n EOS\n\n opt :help, 'Show this help!'\n opt :part, 'The part of the version to increase, [major, minor, patch]', default: 'minor'\n opt :file, 'The file that will be modified can be multi-files separated by comma.\n Example: VERSION, GEMNAME.gemspec, version.rb', default: 'VERSION', type: :string\n opt :config_file, 'The file contains config this program', default: '.bumpversion.cfg', type: :string\n opt :current_version, 'The current version of the software package before bumping ', type: :string\n opt :new_version, 'The version of the software package after the increment. \\\n If not given will be automatically determined.', required: false, type: :string\n\n opt :git_commit, 'Whether to create a commit using Git.', required: false, default: false, type: :boolean\n opt :git_tag, 'Whether to create a tag, that is the new version, prefixed with the character \"v\". If you are using git',\n required: false, default: false, type: :boolean\n opt :git_push, 'Pushes Tags and Commit to origin Git', reuired: false, default: false, type: :boolean\n opt :git_user, 'Name from User to Create Commit', required: false, default: \"Auto Bump\", type: :string\n opt :git_email, 'Email from User to Create Email', required: false, default: \"[email protected]\", type: :string\n opt :git_extra_add, 'Extra files to add in git commit', required: false, default: \"\", type: :string\n\n opt :pre_commit_hooks, 'Call sh commands before commits after Bumpversion separated by ;',\n required: false, type: :string\n opt :pos_commit_hooks, 'Call sh commands after commits separated by ;',\n required: false, type: :string\n end\nend\n"
|