lib/ffi/libfuse/fuse3.rb in ffi-libfuse-0.3.4 vs lib/ffi/libfuse/fuse3.rb in ffi-libfuse-0.4.0
- old
+ new
@@ -54,10 +54,10 @@
# @!visibility private
class Fuse3 < FuseCommon
class << self
def parse_cmdline(args, handler: nil)
cmdline_opts = FuseCmdlineOpts.new
- return nil unless Libfuse.fuse_parse_cmdline3(args, cmdline_opts).zero?
+ raise Error unless Libfuse.fuse_parse_cmdline3(args, cmdline_opts).zero?
handler&.fuse_debug(cmdline_opts.debug) if handler.respond_to?(:fuse_debug)
# mimics fuse_main which exits after printing version info, even if -h
if cmdline_opts.show_version