@@ -32,7 +32,7 @@ function printUsage() {
3232 console . error ( ' diff Compare two ZON files' ) ;
3333 console . error ( 'Options:' ) ;
3434 console . error ( ' --format <json|csv|yaml|binary> Specify format' ) ;
35- console . error ( ' --to <zon |json|binary> Target format for convert' ) ;
35+ console . error ( ' --to <zonf |json|binary> Target format for convert' ) ;
3636 console . error ( ' --colors Use syntax highlighting' ) ;
3737 console . error ( ' --strict Strict validation mode' ) ;
3838}
@@ -171,9 +171,9 @@ try {
171171 console . log ( `Types Found: ${ Array . from ( stats . types ) . join ( ', ' ) } ` ) ;
172172 console . log ( '' ) ;
173173 console . log ( 'Format Sizes:' ) ;
174- console . log ( ` ZON: ${ sizes . zon } bytes` ) ;
175- console . log ( ` Binary: ${ sizes . binary } bytes (-${ sizes . savings . binaryVsZon . toFixed ( 1 ) } %)` ) ;
176- console . log ( ` JSON: ${ sizes . json } bytes (+${ ( ( sizes . json / sizes . zon - 1 ) * 100 ) . toFixed ( 1 ) } %)` ) ;
174+ console . log ( ` ZON: ${ sizes . zonf } bytes` ) ;
175+ console . log ( ` Binary: ${ sizes . binary } bytes (-${ sizes . savings . binaryVsZonf . toFixed ( 1 ) } %)` ) ;
176+ console . log ( ` JSON: ${ sizes . json } bytes (+${ ( ( sizes . json / sizes . zonf - 1 ) * 100 ) . toFixed ( 1 ) } %)` ) ;
177177 } else if ( command === 'diff' ) {
178178 const file2 = args [ 2 ] ;
179179 if ( ! file2 ) {
@@ -230,7 +230,7 @@ try {
230230 const formatArg = args . find ( a => a . startsWith ( '--format=' ) ) ;
231231 const toArg = args . find ( a => a . startsWith ( '--to=' ) ) ;
232232 const format = formatArg ? formatArg . split ( '=' ) [ 1 ] : ext . replace ( '.' , '' ) ;
233- const targetFormat = toArg ? toArg . split ( '=' ) [ 1 ] : 'zon ' ;
233+ const targetFormat = toArg ? toArg . split ( '=' ) [ 1 ] : 'zonf ' ;
234234
235235 let data ;
236236 if ( format === 'binary' || format === 'zonb' ) {
@@ -249,7 +249,7 @@ try {
249249 process . exit ( 1 ) ;
250250 }
251251
252- if ( targetFormat === 'zon ' ) {
252+ if ( targetFormat === 'zonf ' ) {
253253 console . log ( encode ( data ) ) ;
254254 } else if ( targetFormat === 'binary' ) {
255255 const binary = encodeBinary ( data ) ;
0 commit comments