File tree Expand file tree Collapse file tree 4 files changed +11
-9
lines changed
Expand file tree Collapse file tree 4 files changed +11
-9
lines changed Original file line number Diff line number Diff line change 1- import * as fs from 'fs' ;
2- import * as os from 'os' ;
3- import * as path from 'path' ;
1+ import fs from 'fs' ;
2+ import os from 'os' ;
3+ import path from 'path' ;
44
55import * as clipboardy from 'clipboardy' ;
66import open = require( 'open' ) ;
Original file line number Diff line number Diff line change 1- import * as path from 'path' ;
1+ import path from 'path' ;
22
33import { Configuration } from './types' ;
44import { Argv } from './yargs' ;
Original file line number Diff line number Diff line change 1- import * as childProcess from 'child_process' ;
2- import * as fs from 'fs' ;
1+ import childProcess from 'child_process' ;
2+ import fs from 'fs' ;
33
44export function exists ( filePath : string ) : boolean {
55 try {
Original file line number Diff line number Diff line change 1- import * as yargs from 'yargs' ;
1+ import yargs from 'yargs' ;
22
33import {
44 StyleType ,
@@ -187,8 +187,10 @@ export function setup(): Argv {
187187 . example ( 'diff2html -F my-pretty-diff.html -- -M HEAD~1' , 'print to file' )
188188 . example ( 'diff2html --ig package-lock.json --ig yarn.lock' , 'ignore two particular files when generating the diff' )
189189 . help ( )
190- . alias ( 'v' , 'version' )
191- . alias ( 'h' , 'help' )
190+ . alias ( 'help' , 'h' )
191+ . alias ( 'help' , '?' )
192+ . version ( )
193+ . alias ( 'version' , 'v' )
192194 . epilog (
193195 `© 2014-${ currentYear } rtfpessoa
194196 For more information, check out https://diff2html.xyz/
You can’t perform that action at this time.
0 commit comments