Re: Wrong error message when using unknown 2nd subcommand

Ilya Dryomov
Fri, 24 Feb 2012 10:54:16 -0000

On Fri, Feb 24, 2012 at 06:48:58AM +0100, Jan Engelhardt
wrote:
>
> In btrfsprogs-0.19, using an unknown second argument (fd, misspelled)
> leads to an error message complaining about the first argument (it
> should report the second one instead).
>
> $ btrfs fi df
> ERROR: ''filesystem df'' requires 1 arg(s)
> $ btrfs fi fd
> ERROR: unknown command ''fi''

Yep, that''s one of the bugs in the current progs parser.  I rewrote it
completely, it''s available from the ''parser'' branch
of Chris''
btrfs-progs repo and should be merged into master shortly.

Thanks,

		Ilya
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs"
in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html