Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Comments

@postmodern
Copy link
Contributor

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

@caspervonb
Copy link

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

@parkr
Copy link
Member

parkr commented May 7, 2013

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

@parkr parkr closed this as completed May 7, 2013
@postmodern
Copy link
Contributor Author

@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
Copy link

@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
Copy link
Member

parkr commented May 7, 2013

Fixed.

parkr added a commit that referenced this issue May 7, 2013
@jekyll jekyll locked and limited conversation to collaborators Feb 27, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants