@@ -129,41 +129,41 @@ program
129
129
JSON . parse (
130
130
fs
131
131
. readFileSync ( path . join ( __dirname , ".." , ".." , "package.json" ) )
132
- . toString ( )
133
- ) . version
132
+ . toString ( ) ,
133
+ ) . version ,
134
134
)
135
135
. description (
136
- "A convenient command-line client for Perspective.js. Can convert between Perspective supported format, or host a local web server."
136
+ "A convenient command-line client for Perspective.js. Can convert between Perspective supported format, or host a local web server." ,
137
137
)
138
138
. action ( ( ) => program . help ( ) ) ;
139
139
140
140
program
141
141
. command ( "convert [filename]" )
142
142
. description (
143
- "Convert a file into a new format. Reads from STDIN if no filename is provided."
143
+ "Convert a file into a new format. Reads from STDIN if no filename is provided." ,
144
144
)
145
145
. option (
146
146
"-f, --format <format>" ,
147
147
"Which output format to use: arrow, csv, columns, json." ,
148
148
/ ^ ( a r r o w | j s o n | c o l u m n s | c s v ) $ / i,
149
- "arrow"
149
+ "arrow" ,
150
150
)
151
151
. option (
152
152
"-o, --output <filename>" ,
153
- "Filename to write to. If not supplied, writes to STDOUT."
153
+ "Filename to write to. If not supplied, writes to STDOUT." ,
154
154
)
155
155
. action ( convert ) ;
156
156
157
157
program
158
158
. command ( "host [filename]" )
159
159
. description (
160
- "Host a file on a local Websocket/HTTP server using a server-side Perspective. Reads from STDIN if no filename is provided"
160
+ "Host a file on a local Websocket/HTTP server using a server-side Perspective. Reads from STDIN if no filename is provided" ,
161
161
)
162
162
. option (
163
163
"-p, --port <port>" ,
164
164
"Which port to bind to." ,
165
165
( x ) => parseInt ( x ) ,
166
- 8080
166
+ 8080 ,
167
167
)
168
168
. option ( "-a, --assets <path>" , "Host from a working directory" )
169
169
. option ( "-o, --open" , "Open a browser automagically." )
0 commit comments