From c5f4dfae161436e8e512e86c6819148f86dad9f6 Mon Sep 17 00:00:00 2001 From: davidgortega Date: Tue, 18 May 2021 00:04:16 +0200 Subject: [PATCH] shorter params --- bin/cml-pr.js | 9 ++++++--- src/cml.js | 6 +++--- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/bin/cml-pr.js b/bin/cml-pr.js index 334aae218..065c85729 100755 --- a/bin/cml-pr.js +++ b/bin/cml-pr.js @@ -21,9 +21,12 @@ const opts = decamelize( .usage('Usage: $0 ... ') .describe('md', 'Output in markdown format [](url).') .boolean('md') - .default('git-remote', GIT_REMOTE) - .default('git-user-email', GIT_USER_EMAIL) - .default('git-user-name', GIT_USER_NAME) + .default('remote', GIT_REMOTE) + .describe('remote', 'Sets git remote.') + .default('user-email', GIT_USER_EMAIL) + .describe('user-email', 'Sets git user email.') + .default('user-name', GIT_USER_NAME) + .describe('user-name', 'Sets git user name.') .default('repo') .describe( 'repo', diff --git a/src/cml.js b/src/cml.js index 36c534c9f..43b0f4601 100644 --- a/src/cml.js +++ b/src/cml.js @@ -254,9 +254,9 @@ class CML { async pr_create(opts = {}) { const driver = get_driver(this); const { - git_remote: remote = GIT_REMOTE, - git_user_email: user_email = GIT_USER_EMAIL, - gir_user_name: user_name = GIT_USER_NAME, + remote = GIT_REMOTE, + user_email = GIT_USER_EMAIL, + user_name = GIT_USER_NAME, globs = ['dvc.lock', '.gitignore'], md } = opts;