Skip to content

Commit ba66b6c

Browse files
authored
fix(cli): corrected CLI help messages
1 parent e0f4cb6 commit ba66b6c

File tree

3 files changed

+16
-16
lines changed

3 files changed

+16
-16
lines changed

packages/cli/cli.js

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,23 @@
33

44
// NOTE: this will only run on Node > 6 or needs to be transpiled
55

6-
// == OpenJSCAD.org CLI interface, written by Rene K. Mueller <[email protected]>, Licensed under MIT License
6+
// == JSCAD CLI interface, written by Rene K. Mueller <[email protected]>, Licensed under MIT License
77
//
88
// Description:
9-
// openjscad <file> [-of <format>] [-o <output>]
9+
// jscad <file> [-of <format>] [-o <output>]
1010
// e.g.
11-
// openjscad test.jscad
12-
// openjscad test.jscad -o test.stl
13-
// openjscad test.jscad -o test.amf
14-
// openjscad test.jscad -o test.dxf
15-
// openjscad test.scad -o testFromSCAD.jscad
16-
// openjscad test.scad -o test.stl
17-
// openjscad test.stl -o test2.stl # reprocessed: stl -> jscad -> stl
18-
// openjscad test.amf -o test2.jscad
19-
// openjscad test.jscad -of amf
20-
// openjscad test.jscad -of dxf
21-
// openjscad test.jscad -of stl
22-
// openjscad name_plate.jscad --name "Just Me" --title "CEO" -o amf test.amf
11+
// jscad test.jscad
12+
// jscad test.jscad -o test.stl
13+
// jscad test.jscad -o test.amf
14+
// jscad test.jscad -o test.dxf
15+
// jscad test.scad -o testFromSCAD.jscad
16+
// jscad test.scad -o test.stl
17+
// jscad test.stl -o test2.stl # reprocessed: stl -> jscad -> stl
18+
// jscad test.amf -o test2.jscad
19+
// jscad test.jscad -of amf
20+
// jscad test.jscad -of dxf
21+
// jscad test.jscad -of stl
22+
// jscad name_plate.jscad --name "Just Me" --title "CEO" -o amf test.amf
2323
//
2424
const fs = require('fs')
2525

packages/cli/src/env.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const version = require('../package.json').version
22

33
const env = () => {
4-
let env = 'OpenJSCAD ' + version
4+
let env = 'JSCAD ' + version
55
if (typeof document !== 'undefined') {
66
const w = document.defaultView
77
env = env + ' [' + w.navigator.userAgent + ']'

packages/cli/src/parseArgs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const parseArgs = (args) => {
1313
// hint: https://github.com/substack/node-optimist
1414
// https://github.com/visionmedia/commander.js
1515
if (args.length < 1) {
16-
console.log('USAGE:\n\nopenjscad [-v] <file> [-of <format>] [-o <output>]')
16+
console.log('USAGE:\n\njscad [-v] <file> [-of <format>] [-o <output>]')
1717
console.log(`\t<file> :\tinput (Supported types: folder, .${inputExtensions.join(', .')})`)
1818
console.log(`\t<output>:\toutput (Supported types: folder, .${outputExtensions.join(', .')})`)
1919
console.log(`\t<format>:\t${outputFormats.join(', ')}`)

0 commit comments

Comments
 (0)