ruby-rdf / json-ld

Ruby JSON-LD reader/writer for RDF.rb
The Unlicense
232 stars 27 forks source link

Add `jsonld -h` as an alias for `jsonld -?` #21

Closed artob closed 8 years ago

artob commented 8 years ago

The -h command-line option might perhaps do something more useful than the current output:

$ jsonld -h
/usr/bin/jsonld: invalid option -- h
/usr/lib/ruby/2.0.0/getoptlong.rb:394:in `set_error': invalid option -- h (GetoptLong::InvalidOption)
    from /usr/lib/ruby/2.0.0/getoptlong.rb:571:in `get'
    from /usr/lib/ruby/2.0.0/getoptlong.rb:602:in `block in each'
    from /usr/lib/ruby/2.0.0/getoptlong.rb:601:in `loop'
    from /usr/lib/ruby/2.0.0/getoptlong.rb:601:in `each'
    from bin/jsonld:122:in `<top (required)>'
    from /usr/bin/jsonld:23:in `load'
    from /usr/bin/jsonld:23:in `<main>'
artob commented 8 years ago

In the same vein, supporting jsonld --version (short form -V) might also be a good idea.

gkellogg commented 8 years ago

Closed in favor of the more comprehensive rdf command.