@bobfrankston/msger 0.1.140 → 0.1.142

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/clihandler.js CHANGED
@@ -160,7 +160,8 @@ export function parseCliArgs(args) {
160
160
  i++;
161
161
  }
162
162
  else if (arg === '-full' || arg === '--full') {
163
- // Accepted for compatibility with msgview, but ignored (use -url for raw HTML)
163
+ // Track usage for validation (incompatible with -url)
164
+ cli.full = true;
164
165
  i++;
165
166
  }
166
167
  else if (arg === '-no-escape-closes' || arg === '--no-escape-closes') {
@@ -245,6 +246,10 @@ export function parseCliArgs(args) {
245
246
  i++;
246
247
  }
247
248
  }
249
+ // Validate incompatible options
250
+ if (cli.full && cli.url) {
251
+ throw new Error('-full and -url cannot be used together. Did you mean -fullscreen?');
252
+ }
248
253
  // Build the message
249
254
  let message;
250
255
  let html;
package/clihandler.ts CHANGED
@@ -21,6 +21,7 @@ interface CliOptions {
21
21
  timeout?: number;
22
22
  detach?: boolean;
23
23
  fullscreen?: boolean;
24
+ full?: boolean;
24
25
  escapeCloses?: boolean;
25
26
  reset?: boolean;
26
27
  alwaysOnTop?: boolean;
@@ -190,7 +191,8 @@ export function parseCliArgs(args: string[]): {
190
191
  cli.fullscreen = true;
191
192
  i++;
192
193
  } else if (arg === '-full' || arg === '--full') {
193
- // Accepted for compatibility with msgview, but ignored (use -url for raw HTML)
194
+ // Track usage for validation (incompatible with -url)
195
+ cli.full = true;
194
196
  i++;
195
197
  } else if (arg === '-no-escape-closes' || arg === '--no-escape-closes') {
196
198
  cli.escapeCloses = false;
@@ -255,6 +257,11 @@ export function parseCliArgs(args: string[]): {
255
257
  }
256
258
  }
257
259
 
260
+ // Validate incompatible options
261
+ if (cli.full && cli.url) {
262
+ throw new Error('-full and -url cannot be used together. Did you mean -fullscreen?');
263
+ }
264
+
258
265
  // Build the message
259
266
  let message: string;
260
267
  let html: string | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bobfrankston/msger",
3
- "version": "0.1.140",
3
+ "version": "0.1.142",
4
4
  "description": "Fast, lightweight, cross-platform message box - Rust-powered alternative to msgview",
5
5
  "type": "module",
6
6
  "main": "./index.js",