You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by pa...@apache.org on 2016/10/13 18:11:12 UTC

[3/3] incubator-mynewt-newt git commit: missing autocomplete for set command

missing autocomplete for set command


Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/commit/a47565d2
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/tree/a47565d2
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/diff/a47565d2

Branch: refs/heads/develop
Commit: a47565d22869186ea8eb0bfb646e66ca3123488e
Parents: 8d09f13
Author: Paul Dietrich <pa...@yahoo.com>
Authored: Fri Sep 16 15:19:31 2016 -0700
Committer: Paul Dietrich <pa...@yahoo.com>
Committed: Thu Oct 13 11:10:47 2016 -0700

----------------------------------------------------------------------
 newt/cli/target_cmds.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/a47565d2/newt/cli/target_cmds.go
----------------------------------------------------------------------
diff --git a/newt/cli/target_cmds.go b/newt/cli/target_cmds.go
index ff284f7..e325713 100644
--- a/newt/cli/target_cmds.go
+++ b/newt/cli/target_cmds.go
@@ -495,7 +495,7 @@ func AddTargetCommands(cmd *cobra.Command) {
 		Example: setHelpEx,
 		Run:     targetSetCmd,
 	}
-
+	setCmd.ValidArgs = targetList()
 	targetCmd.AddCommand(setCmd)
 
 	createHelpText := "Create a target specified by <target-name>."