Skip to content
Browse files

add --version option => make help2man happy

  • Loading branch information...
1 parent 3b11516 commit 4271fa356bce4bb367f817c4f4b03c75cf43c013 Simon Huerlimann committed Jan 2, 2009
Showing with 13 additions and 0 deletions.
  1. +13 −0 darcs-to-git
13 darcs-to-git
@@ -75,6 +75,19 @@ OPTIONS
"Don't note darcs hashes in git commit messages (not recommended)") do |n|
OPTIONS[:clean_commit_messages] = true
+ opts.on('--version', "Output version information and exit") do
+ puts <<-EOF
+darcs-to-git 0.1
+Copyright (c) 2009 Steve Purcell,
+License MIT: <>
+This is free software: you are free to change and redistribute it.
+There is NO WARRANTY, to the extent permitted by law.
+ exit
+ end
opts.on('-h', '--help', "Show this message") do
puts opts.to_s

0 comments on commit 4271fa3

Please sign in to comment.
Something went wrong with that request. Please try again.