btrfs-progs: fix a regression that "property" with -t option doesn't work
authorSatoru Takeuchi <takeuchi_satoru@jp.fujitsu.com>
Wed, 16 Mar 2016 02:11:07 +0000 (11:11 +0900)
committerDavid Sterba <dsterba@suse.com>
Wed, 16 Mar 2016 09:19:42 +0000 (10:19 +0100)
commitc742debab11fb01b5f14743f06485c5f773655bc
tree519481a4a9c38b6ebdc941f0ac31a465ad3f43fd
parent4b80569b58352361509eb951c9c478353420ea09
btrfs-progs: fix a regression that "property" with -t option doesn't work

"property" is considered as working without any options
from the following commit.

commit 176aeca9a148 ("btrfs-progs: add getopt stubs where needed")

However, we can pass -t option to this command.

* actual result

  ==================================================
  $ ./btrfs prop list -t f /btrfs
  btrfs property list: invalid option -- 't'
  usage: btrfs property list [-t <type>] <object>

      Lists available properties with their descriptions for the given object.

      Please see the help of 'btrfs property get' for a description of
      objects and object types.

  ==================================================

* expected result

  ==================================================
  $ ./btrfs prop list -t f /btrfs
  label               Set/get label of device.
  ==================================================

Signed-off-by: Satoru Takeuchi <takeuchi_satoru@jp.fujitsu.com
Signed-off-by: David Sterba <dsterba@suse.com>
cmds-property.c