diff options
author | Brian Ashworth <bosrsf04@gmail.com> | 2019-08-12 22:23:29 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-08-20 13:27:52 +0900 |
commit | 7447eefca9188d3d80719af339dae8afea08a565 (patch) | |
tree | 1151f04a1695fd6eb918e022442a2c9da0ac9baf | |
parent | 63651bc5e0457e9c05f3d1c0ebbf8c1d2b767550 (diff) |
swaymsg.1: add tip about two hyphens for commands
This adds a tip to the command section about using two hyphens before a
command to signal that no swaymsg options will follow to allow for sway
commands with leading hyphens.
-rw-r--r-- | swaymsg/swaymsg.1.scd | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/swaymsg/swaymsg.1.scd b/swaymsg/swaymsg.1.scd index bcddf35b2..639ed5f9e 100644 --- a/swaymsg/swaymsg.1.scd +++ b/swaymsg/swaymsg.1.scd @@ -46,6 +46,11 @@ _swaymsg_ [options...] [message] See **sway**(5) for a list of commands. + Tip: If you are proving a command that contains a leading hyphen (_-_), + insert two hyphens (_--_) before the command to signal to swaymsg not to + parse anything beyond that point as an option. For example, use + _swaymsg -- mark --add test_ instead of _swaymsg mark --add test_ + *get\_workspaces* Gets a JSON-encoded list of workspaces and their status. |