# Optional \`=\` in command arguments? (i.e. space can be used instead...)

**URL:** <https://forum.mikrotik.com/t/optional-in-command-arguments-i-e-space-can-be-used-instead/273121>\
**Category:** Scripting\
**Created:** [September 15, 2026, 5:21am UTC](https://forum.mikrotik.com/t/optional-in-command-arguments-i-e-space-can-be-used-instead/273121 "2026-09-15T05:21:04Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Amm0](https://forum.mikrotik.com/user_avatar/forum.mikrotik.com/amm0/32/1630_2.png) [@Amm0](https://forum.mikrotik.com/u/Amm0)\
**Post date:** [September 15, 2026, 4:03pm UTC](https://forum.mikrotik.com/t/optional-in-command-arguments-i-e-space-can-be-used-instead/273121/4 "2026-09-15T16:03:55Z")

</div>

> [@rextended](#):
>
> must never be done,

And this comes back to this discussion:

> [@thinking Discussion: Lint'ing and "Scoring" RouterOS configuration](https://forum.mikrotik.com/t/discussion-linting-and-scoring-routeros-configuration/273004):
>
> Spin-off from [Important security update](https://forum.mikrotik.com/t/important-security-update/272851) I've been thinking about how to "lint" RouterOS for a while. I already build [RouterOS LSP](https://github.com/tikoci/lsp-routeros-ts), and have [Rosetta MCP](https://tikoci.github.io/p/rosetta) for AI. While these tools can "check" if a config is "valid" or has errors, and AI more easily find RouterOS fact from Rosetta... Nothing in my toolchain actually did any meaningful analysis of a configuration, which is important if you want to "surface" important configuration details. My general focus has been on offering "help" (for exampl…

The issue, if one wants to be faithful to what RouterOS **accepts** as valid... this whole concept that "equals in arguments are options" through a wrench in the scheme. Since no docs EVERY show this "equal-less args" syntax, it a **bad idea** to start writing scripts this way.

See my existing RouterOS LSP, using `/console/inspect request=highlight` to determine validity of scripts (on top of how to colorize the script). I'd glossed over this a while back, and just treated `syntax-obsolete` as a hard error:

 ![image](https://data-discourse.cdn.mikrotik.com/original/3X/d/4/d4f5e92074aec4195c4aaa96ab2392c32bc0aaed.png)

But, via testing, scripts \> 24K take many seconds to calculate. So the newer approach to use `:parse` to determine validating (with `request=highlight` handling colors still). But what this found is that "equal-less args" are accepted, so `syntax-obsolete` is not actually a "true" error.

For example, taking the above, the following two statements result in the exact same code running on RouterOS:

```routeros
/system/script; add name beep source { :beep }; run beep
/system/script; add name=beep source={ :beep }; run beep

```

And if you `:put [:parse "..."]` the above two lines, both return the same "ParseIL" (`:typeof` is `(code)`):

```routeros-parcil
/system/script/;(evl /system/script/addname=beep;source= :beep );(evl /system/script/runnumber=beep)

```

So not that I unwind this problem, it more then just `do`/`else` blocks. These "equal-less args" seem pretty universally accepted...

```routeros
 /ip/firewall/layer7-protocol
 add comment "something" regexp 1.1
 print

```

```auto
Columns: REGEXP
# REGEXP
;;; something
0 1.1

```

```routeros
:put [:typeof [get [find] regexp]]

```

```auto
str

```

Anyway more interesting scripting factoid. And I agree with @rextended **nothing** here should be an example of what to do Including use "beep" as a name, even though it's a command, which again is okay in specific context, but _generally_ bad practice. But exactly why some curated set of "rules" that can applied like a "linter" would be so useful... since I do not like the idea that "core" parsing things like my LSP are not faithful to what RouterOS accepts. But at the same time there some generally BAD things that should not be done, even if "accepted".

_Basically my own LSP blinded me, for years, to what is in fact "accepted" by RouterOS._

---

_[View the full topic](https://forum.mikrotik.com/t/optional-in-command-arguments-i-e-space-can-be-used-instead/273121)._
