Skip to content

Commit

Permalink
Add 'default_command' to the README.
Browse files Browse the repository at this point in the history
  • Loading branch information
parkr committed Dec 1, 2013
1 parent e082759 commit 92c4482
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,19 @@ Mercenary.program(:jekyll) do |p|
end
end

p.command(:build) do |c|
c.syntax "jekyll build [options]"
c.description "Builds your Jekyll site"

c.option 'safe', '--safe', 'Run in safe mode'
c.option 'source', '--source DIR', 'From where to collect the source files'
c.option 'destination', '--dest DIR', 'To where the compiled files should be written'

c.action do |_, options|
Jekyll::Commands::Build.process(options)
end
end

p.command(:import) do |c|
c.syntax "jekyll import <platform> [options]"
c.description "Import your old blog to Jekyll"
Expand All @@ -51,6 +64,8 @@ Mercenary.program(:jekyll) do |p|
Jekyll::Commands::Import.process(args.first, options)
end
end

p.default_command(:build)
end
```

Expand Down

0 comments on commit 92c4482

Please sign in to comment.