Skip to content

Commit

Permalink
add shortcut for projectPath
Browse files Browse the repository at this point in the history
  • Loading branch information
weikangchia committed Aug 4, 2021
1 parent 45b5f94 commit a074efb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ import GitFactory = require('./gitFactory');
import path = require('path');

class GitCG extends Command {
static description = 'Gitlab Changelog Generator';
static description = 'GitLab Changelog Generator';

static flags = {
milestone: flags.string({ char: 'm', description: 'title of milestone' }),
projectPath: flags.string({ description: 'path to project' }),
config: flags.string({ description: 'path to config' }),
projectPath: flags.string({ char: 'p', description: 'path to project' }),
config: flags.string({ description: 'custom config file name (default is config.json)' }),
};

applyIfLocalEnvironment() {
Expand All @@ -27,7 +27,7 @@ class GitCG extends Command {
async run() {
this.applyIfLocalEnvironment();

const { args, flags } = this.parse(GitCG);
const { flags } = this.parse(GitCG);

const config = read(path.join(this.config.configDir, flags.config || 'config.json'));

Expand Down

0 comments on commit a074efb

Please sign in to comment.