Skip to content

help message mentions the formats that are unsupported #20

@php-coder

Description

@php-coder

--help shows that it's possible to output the result in the different formats but in fact only one is supported. I'd expect that it won't show unsupported configurations/options to not confuse me.

$ hoc --help
Usage (0.8): hoc [options]
    -h, --help     Show brief intro
    -f, --format   Output format (text|xml|json|int)
    -e, --exclude  Glob pattern to exclude files/dirs, e.g. "vendor/**"
    -d, --dir      Directory to scan
$ hoc -f text
/home/coder/.gem/ruby/gems/hoc-0.8/lib/hoc.rb:38:in `initialize': only "int" format is supported now (RuntimeError)
	from /home/coder/.gem/ruby/gems/hoc-0.8/bin/hoc:65:in `new'
	from /home/coder/.gem/ruby/gems/hoc-0.8/bin/hoc:65:in `<top (required)>'
	from /home/coder/bin/hoc:22:in `load'
	from /home/coder/bin/hoc:22:in `<main>'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions