Skip to content
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

Invalid command-line options make gollum spit out a stack trace instead of usage information #27

Closed
paulbaumgart opened this issue Aug 31, 2010 · 2 comments

Comments

@paulbaumgart
Copy link
Contributor

$ gollum --invalid
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/optparse.rb:1450:in `complete': invalid option: --invalid (OptionParser::InvalidOption)
    from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/optparse.rb:1448:in `catch'
    from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/optparse.rb:1448:in `complete'
    from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/optparse.rb:1261:in `parse_in_order'
    from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/optparse.rb:1254:in `catch'
    from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/optparse.rb:1254:in `parse_in_order'
    from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/optparse.rb:1248:in `order!'
    from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/optparse.rb:1339:in `permute!'
    from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/optparse.rb:1360:in `parse!'
    from /Library/Ruby/Gems/1.8/gems/gollum-1.0.1/bin/gollum:40
    from /usr/bin/gollum:19:in `load'
    from /usr/bin/gollum:19
@paulbaumgart
Copy link
Contributor Author

fix: paulbaumgart/gollum@418dc13

New behavior:

$ bin/gollum --invalid
invalid option: --invalid

Gollum is a multi-format Wiki Engine/API/Frontend.

Basic Command Line Usage:
  gollum [OPTIONS] [PATH]

        PATH                         The path to the Gollum repository.

Options:
        --port [PORT]                Bind port (default 4567).
        --version                    Display current version.
        --irb                        Start an irb process with gollum loaded for the current wiki.

@technoweenie
Copy link
Contributor

Damnit, I just pushed a fix. Thanks for the report :)

dometto pushed a commit that referenced this issue Jan 8, 2023
Add ssh transport to clone, push, pull, and fetch.
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants