diff --git a/commands/issue.go b/commands/issue.go index 1fa81101c0952872f81bb9501cc94dde1a42bb32..a06ecf0b71f6aa2cbe232f927885c2fe17e2d150 100644 --- a/commands/issue.go +++ b/commands/issue.go @@ -19,7 +19,7 @@ var ( Usage: ` issue [-a ] [-c ] [-@ ] [-s ] [-f ] [-M ] [-l ] [-d ] [-o [-^]] [-L ] issue create [-oc] [-m |-F ] [-a ] [-M ] [-l ] -issue label +issue labels `, Long: `Manage GitHub issues for the current project. @@ -30,7 +30,7 @@ With no arguments, show a list of open issues. * _create_: Open an issue in the current project. - * _label_: + * _labels_: List the labels available in this repository. ## Options: diff --git a/commands/label.go b/commands/label.go index a1cf0a44a32b16fa8bddc3b90241004e4988c08f..4a566c55d206cf55a4632bab988053158609a105 100644 --- a/commands/label.go +++ b/commands/label.go @@ -9,9 +9,9 @@ import ( var ( cmdLabel = &Command{ - Key: "label", + Key: "labels", Run: listLabels, - Usage: "issue label", + Usage: "issue labels", Long: "List the labels available in this repository.", } ) diff --git a/features/label.feature b/features/label.feature index f921162d906fab2e470a75ec38d7c453c512ac82..052d2d3fd95dd37d9b3f5ad973eefa354b6bf0fa 100644 --- a/features/label.feature +++ b/features/label.feature @@ -1,4 +1,4 @@ -Feature: hub label +Feature: hub labels Background: Given I am in "git://github.com/github/hub.git" git repo And I am "testeroni" on github.com with OAuth token "OTOKEN" @@ -17,7 +17,7 @@ Feature: hub label ] } """ - When I successfully run `hub issue label` + When I successfully run `hub issue labels` Then the output should contain exactly: """ bug