@rip-lang/print 0.1.8 → 0.1.9
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/package.json +1 -1
- package/print.rip +6 -1
package/package.json
CHANGED
package/print.rip
CHANGED
|
@@ -23,6 +23,10 @@ hljs.registerLanguage 'rip', ripLanguage
|
|
|
23
23
|
|
|
24
24
|
args = process.argv.slice(2)
|
|
25
25
|
|
|
26
|
+
if args.includes('-v') or args.includes('--version')
|
|
27
|
+
console.log "rip-print 0.1.8"
|
|
28
|
+
process.exit(0)
|
|
29
|
+
|
|
26
30
|
if args.includes('-h') or args.includes('--help')
|
|
27
31
|
console.log """
|
|
28
32
|
usage: rip-print [options] <paths ...>
|
|
@@ -31,6 +35,7 @@ if args.includes('-h') or args.includes('--help')
|
|
|
31
35
|
-b, --bypass Strip leading comment blocks from files
|
|
32
36
|
-d, --dark Use dark theme (default: light)
|
|
33
37
|
-h, --help Show this help message
|
|
38
|
+
-v, --version Show version and quit
|
|
34
39
|
-x <exts> Comma list of extensions to exclude
|
|
35
40
|
|
|
36
41
|
Examples:
|
|
@@ -412,7 +417,7 @@ html = """
|
|
|
412
417
|
served = false
|
|
413
418
|
|
|
414
419
|
server = Bun.serve
|
|
415
|
-
port:
|
|
420
|
+
port: 9111
|
|
416
421
|
fetch: (req) ->
|
|
417
422
|
served = true
|
|
418
423
|
new Response html, headers: { 'Content-Type': 'text/html; charset=utf-8' }
|