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/09/07 22:20:20 UTC

[3/3] incubator-mynewt-newt git commit: MYNEWT-126

MYNEWT-126

add target options for show


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/40c8f681
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/tree/40c8f681
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/diff/40c8f681

Branch: refs/heads/develop
Commit: 40c8f6811b4880ab99c014e7e70e5d91002bf304
Parents: 8634519
Author: Paul Dietrich <pa...@yahoo.com>
Authored: Wed Sep 7 15:13:21 2016 -0700
Committer: Paul Dietrich <pa...@yahoo.com>
Committed: Wed Sep 7 15:13:21 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/40c8f681/newt/cli/target_cmds.go
----------------------------------------------------------------------
diff --git a/newt/cli/target_cmds.go b/newt/cli/target_cmds.go
index f818ff6..b9ebada 100644
--- a/newt/cli/target_cmds.go
+++ b/newt/cli/target_cmds.go
@@ -360,7 +360,7 @@ func AddTargetCommands(cmd *cobra.Command) {
 		Example: showHelpEx,
 		Run:     targetShowCmd,
 	}
-
+	showCmd.ValidArgs = targetList()
 	targetCmd.AddCommand(showCmd)
 
 	setHelpText := "Set a target variable (<var-name>) on target " +