Skip to content

Commit 39ca7b0

Browse files
Merge pull request #75 from vishwanatharondekar/add-back-print-option
Add print option back for backward compatibility
2 parents db23284 + f53fa86 commit 39ca7b0

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,9 @@ Above will create merge request for merging feature/feature-name in develop.
5959
-l, --labels [optional] Comma separated list of labels to assign while creating merge request
6060
-r, --remove_source_branch [optional] Flag indicating if a merge request should remove the source branch when merging
6161
-s, --squash [optional] Squash commits into a single commit when merging
62-
-e, --edit [optional] If supplied opens edit page of merge request. Opens merge request page otherwise
63-
-p, --print [optional] If supplied print the url of the merge request. Opens merge request page otherwise
62+
-e, --edit [optional] If supplied opens edit page of merge request. Prints the merge request URL otherwise
63+
-o, --open [optional] If supplied open the page of the merge request. Prints the merge request URL otherwise
64+
-p, --print [deprecated] Doesn't do anything. Kept here for backward compatibility. Default is print.
6465
-v, --verbose [optional] Detailed logging emitted on console for debug purpose
6566
-h, --help output usage information
6667

index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -518,6 +518,7 @@ program
518518
.option('-s, --squash [optional]', 'Squash commits into a single commit when merging')
519519
.option('-e, --edit [optional]', 'If supplied opens edit page of merge request. Prints the merge request URL otherwise')
520520
.option('-o, --open [optional]', 'If supplied open the page of the merge request. Prints the merge request URL otherwise')
521+
.option('-p, --print [deprecated]', 'Doesn\`t do anything. Kept here for backward compatibility. Default is print.')
521522
.option('-v, --verbose [optional]', 'Detailed logging emitted on console for debug purpose')
522523
.description('Create merge request on gitlab')
523524
.action(function (options) {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "git-lab-cli",
3-
"version": "2.0.2",
3+
"version": "2.0.4",
44
"description": "",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)