`jekyll` command should list sub-commands or be aliased to `jekyll serve` #1041

Closed
postmodern opened this Issue May 7, 2013 · 5 comments

Projects

None yet

3 participants

@postmodern
Contributor

Running jekyll without a sub-command should do something useful.

@caspervonb

Disagree, should just list the the subcommands available, thats how most CLI interfaces are laid out.

@parkr
Member
parkr commented May 7, 2013

It does do something useful! It prints the help menu :)

@parkr parkr closed this May 7, 2013
@postmodern
Contributor

@parkr you are mistaken:

$ gem install jekyll
Successfully installed jekyll-1.0.0
1 gem installed
Installing ri documentation for jekyll-1.0.0...
Building YARD (yri) index for jekyll-1.0.0...
$ jekyll 
       Deprecation: Jekyll now uses subcommands instead of just switches. Run `jekyll help' to find out more.
/home/hal/.gem/ruby/1.9.1/gems/commander-4.1.3/lib/commander/runner.rb:365:in `block in require_program': program version required (Commander::Runner::CommandError)
    from /home/hal/.gem/ruby/1.9.1/gems/commander-4.1.3/lib/commander/runner.rb:364:in `each'
    from /home/hal/.gem/ruby/1.9.1/gems/commander-4.1.3/lib/commander/runner.rb:364:in `require_program'
    from /home/hal/.gem/ruby/1.9.1/gems/commander-4.1.3/lib/commander/runner.rb:52:in `run!'
from /home/hal/.gem/ruby/1.9.1/gems/commander-4.1.3/lib/commander/delegates.rb:11:in `run!'
    from /home/hal/.gem/ruby/1.9.1/gems/commander-4.1.3/lib/commander/import.rb:10:in `block in <top (required)>'
@caspervonb

@parkr, @postmodern actually there has been a regression since rc1

bundle exec jekyll -v
jekyll 1.0.0.rc1

bundle exec jekyll

NAME:

jekyll

DESCRIPTION:

Jekyll is a blog-aware, static site generator in Ruby

COMMANDS:

build                Build your site                
help                 Display global or [command] help documentation.        
import               Import your old blog to Jekyll         
new                  Creates a new Jekyll site scaffold in PATH             
serve                Serve your site locally                

ALIASES:

server               serve   

GLOBAL OPTIONS:

-s, --source [DIR] 
@parkr
Member
parkr commented May 7, 2013

Fixed.

@parkr parkr added a commit that referenced this issue May 7, 2013
@parkr parkr Update history to reflect fix of #1041. 7dccb6c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment