Skip to content

Commit 9100d77

Browse files
author
Andreas Müller
committed
fix gtt start
1 parent ec88d01 commit 9100d77

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "gitlab-time-tracker",
3-
"version": "1.8.0-alpha.2",
3+
"version": "1.8.0-alpha.3",
44
"type": "module",
55
"description": "A command line interface for GitLabs time tracking feature.",
66
"bugs": {

src/gtt-start.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,15 @@ function start() {
1414
.option('-i', 'shorthand for --type=issue')
1515
.option('--verbose', 'show verbose output')
1616
.option('--note <note>', 'specify note')
17-
.action((project, id, options, program) => {
17+
.action((arg1, arg2, options, program) => {
1818

1919
Cli.verbose = program.opts().verbose;
2020

2121
let config = new Config(process.cwd()),
2222
tasks = new Tasks(config),
23-
type = program.opts().type ? program.opts().type : 'issue';
23+
type = program.opts().type ? program.opts().type : 'issue',
24+
id = program.args.length === 1 ? parseInt(program.args[0]) : parseInt(program.args[1]),
25+
project = program.args.length === 2 ? program.args[0] : null;
2426

2527
if (program.opts().i) {
2628
type = 'issue';

src/version.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
let version = '1.8.0-snapshot'; export default version;
1+
let version = '1.8.0-alpha.3'; export default version;

0 commit comments

Comments
 (0)