Repository: incubator-mynewt-newt
Updated Branches:
  refs/heads/develop c1dfedcd1 -> 138a96c89


Fix load and debug commands

Those two commands also provide short '-j' option for --extrajtagcmd
which is conflicting with '-j' short option for --jobs. Since those
are extra parameters just expect user to use long option for those.


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

Branch: refs/heads/develop
Commit: f072852705156767819ace3d4e47441014468fda
Parents: c1dfedc
Author: Szymon Janc <[email protected]>
Authored: Thu Jan 5 12:35:18 2017 +0100
Committer: Szymon Janc <[email protected]>
Committed: Thu Jan 5 12:35:18 2017 +0100

----------------------------------------------------------------------
 newt/cli/build_cmds.go | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-newt/blob/f0728527/newt/cli/build_cmds.go
----------------------------------------------------------------------
diff --git a/newt/cli/build_cmds.go b/newt/cli/build_cmds.go
index 03b9962..153997a 100644
--- a/newt/cli/build_cmds.go
+++ b/newt/cli/build_cmds.go
@@ -408,7 +408,7 @@ func AddBuildCommands(cmd *cobra.Command) {
        cmd.AddCommand(loadCmd)
        AddTabCompleteFn(loadCmd, targetList)
 
-       loadCmd.PersistentFlags().StringVarP(&extraJtagCmd, "extrajtagcmd", 
"j", "",
+       loadCmd.PersistentFlags().StringVarP(&extraJtagCmd, "extrajtagcmd", "", 
"",
                "extra commands to send to JTAG software")
 
        debugHelpText := "Open debugger session for <target-name>."
@@ -420,7 +420,7 @@ func AddBuildCommands(cmd *cobra.Command) {
                Run:   debugRunCmd,
        }
 
-       debugCmd.PersistentFlags().StringVarP(&extraJtagCmd, "extrajtagcmd", 
"j",
+       debugCmd.PersistentFlags().StringVarP(&extraJtagCmd, "extrajtagcmd", "",
                "", "extra commands to send to JTAG software")
        debugCmd.PersistentFlags().BoolVarP(&noGDB_flag, "noGDB", "n", false,
                "don't start GDB from command line")

Reply via email to