You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The `-z` and `-pluginMessage` command-line options both follow Highlander rules: "There Can Be Only One". The UM needs to make this abundantly clear to users.
Copy file name to clipboardExpand all lines: content/docs/command-prompt.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -172,6 +172,7 @@ code | file
172
172
*`-openFoldersAsWorkspace`: Any folders listed as arguments will be opened as a workspace, rather than opening all the contained files individually.
173
173
*`-titleAdd="additional title bar text"`: Add a dash and a space and the supplied text to the right side of the application title bar (new to v8.0.0).
174
174
*`-pluginMessage="text for plugin(s)"`: If plugin developers need extra command line arguments, then users can add this option, and the plugin will be [notified](../plugin-communication/#NPPN_CMDLINEPLUGINMSG"NPPN_CMDLINEPLUGINMSG") that it can parse that string for extra information (new to v8.4.2).
175
+
- You can only give Notepad++ _one_`-pluginMessage` argument. If you have multiple pieces of information you want to pass to one or more plugins, they have to be joined together, such as, `-pluginMessage="arg1=Val1;arg2=Val2"`, and the plugin has to know how to split the contents of that message into the pieces that the plugin needs.
175
176
*`filepath`: File or folder name to open (absolute or relative path name).
176
177
177
178
The order of the options is not important. Brackets indicate that the options
@@ -197,8 +198,9 @@ usage list. These are intended for advanced usage or other special circumstance
197
198
a command-line option when you try to print the file from the Explorer Context menu.
198
199
Enabling this option allows Notepad++ to recognize that option, and convert it internally
199
200
to the official `-quickPrint` option.
200
-
*`-z`: Causes Notepad++ to ignore the next command line argument (a single word, or a phrase in quotes). The only intended and
201
-
supported use for this option is for the [Notepad Replacement](../other-resources/#notepad-replacement) syntax.
201
+
*`-z`: Causes Notepad++ to ignore the next command line argument (a single word, or a phrase in quotes).
202
+
- The only intended and supported use for this option is for the [Notepad Replacement](../other-resources/#notepad-replacement) syntax. Any other use for this option is unsupported and not guaranteed to work.
203
+
- There can only be one `-z` per command-line, because that is all that is required for [Notepad Replacement](../other-resources/#notepad-replacement).
0 commit comments