Skip to content

Commit 09853fa

Browse files
committed
Show more helpful usage when arguments for hikidoc is wrong
1 parent d380091 commit 09853fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/hikidoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ when 0
4646
when 1
4747
title, text = ARGV[0], File.read(ARGV[0])
4848
else
49-
abort usage
49+
abort ARGV.options.help
5050
end
5151

5252
body = HikiDoc.to_html(text, format_options)

0 commit comments

Comments
 (0)