Skip to content

Commit a1c5c19

Browse files
committed
Add check token option to sync command
1 parent 737e1e8 commit a1c5c19

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/gtt-sync.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,14 @@ const Tasks = require('./include/tasks');
88
program
99
.option('-p --proxy <proxy>', 'use a proxy server with the given url')
1010
.option('--verbose', 'show verbose output')
11+
.option('--check_token', 'check the access token')
1112
.parse(process.argv);
1213

1314
Cli.verbose = program.verbose;
1415

15-
let config = new Config(process.cwd()).set('proxy', program.proxy),
16+
let config = new Config(process.cwd())
17+
.set('proxy', program.proxy)
18+
.set('_checkToken', program.check_token),
1619
tasks = new Tasks(config);
1720

1821
tasks.syncInit()

0 commit comments

Comments
 (0)