Skip to content

Commit

Permalink
Add short flags
Browse files Browse the repository at this point in the history
  • Loading branch information
bew committed Sep 1, 2017
1 parent 2f3f856 commit 229c6ef
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/compiler/crystal/tools/init.cr
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,16 @@ module Crystal
USAGE

opts.on("--help", "show this help") do
opts.on("-h", "--help", "show this help") do
puts opts
exit
end

opts.on("--force", "force overwrite existing files") do
opts.on("-f", "--force", "force overwrite existing files") do
config.force = true
end

opts.on("--skip-existing", "skip existing files") do
opts.on("-s", "--skip-existing", "skip existing files") do
config.skip_existing = true
end

Expand Down

0 comments on commit 229c6ef

Please sign in to comment.