---

**[tickets:#434] Deprecated commands with spaces require quotes**

**Status:** new
**Milestone:** 0.11.0
**Created:** Mon Sep 23, 2024 03:23 PM UTC by Evgeniy Naydanov
**Last Updated:** Mon Sep 23, 2024 03:23 PM UTC
**Owner:** nobody


E.g. `ipdbg -start` command was deprecated in favor of `ipdbg create-hub` 
7a77355a3ea574dc5b7fc0a6ea8be413589ef847

However, since the name of the `proc` includes a space, it can not be simply 
called via CLI. 
In particular:
```
> openocd -c "ipdbg -start"
...
invalid command name "ipdbg"
```
Extra quotes/braces are needed to get the expected behavior:
```
> build/upstream/src/openocd -c '{ipdbg -start}'
DEPRECATED! use 'ipdbg create-hub' and 'chip.ipdbghub ipdbg start ...', not 
'ipdbg -start ...'
parsing arguments failed: no tap and no pld given.
```

AFAIU, this is a bug, since deprecating a command in such manner is not 
backward compatible.


---

Sent from sourceforge.net because openocd-devel@lists.sourceforge.net is 
subscribed to https://sourceforge.net/p/openocd/tickets/

To unsubscribe from further messages, a project admin can change settings at 
https://sourceforge.net/p/openocd/admin/tickets/options.  Or, if this is a 
mailing list, you can unsubscribe from the mailing list.


Reply via email to