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

Option arguments checking #7

Open
kozo2 opened this issue Jan 9, 2019 · 0 comments
Open

Option arguments checking #7

kozo2 opened this issue Jan 9, 2019 · 0 comments

Comments

@kozo2
Copy link

kozo2 commented Jan 9, 2019

For example,
If there is no -o (output) argument in rubydown command line, rubydown prints this error.
This is difficult to understand.
We need to add option arguments checking code.

rubydown -i /usr/local/bundle/gems/rubydown-0.1.0/examples/data_science.md -e /usr/local/bundle/gems/r
ubydown-0.1.0/templates/template.html.erb /data/a/Desktop/hoge.html
Traceback (most recent call last):
        4: from /usr/local/bundle/bin/rubydown:23:in `<main>'
        3: from /usr/local/bundle/bin/rubydown:23:in `load'
        2: from /usr/local/bundle/gems/rubydown-0.1.0/exe/rubydown:100:in `<top (required)>'
        1: from /usr/local/bundle/gems/rubydown-0.1.0/exe/rubydown:96:in `main'
/usr/local/bundle/gems/rubydown-0.1.0/exe/rubydown:96:in `write': no implicit conversion of nil into String (TypeError)
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

1 participant