diff --git a/bin/cml.js b/bin/cml.js index f02247910..bd7bc759c 100755 --- a/bin/cml.js +++ b/bin/cml.js @@ -130,6 +130,7 @@ const handleError = (message, error) => { } }) .global('version', false) + .group('help', 'Global Options:') .fail(handleError) .middleware(setupOpts) .middleware(setupLogger) diff --git a/bin/cml.test.js b/bin/cml.test.js index 2a806bec0..612fed3ab 100644 --- a/bin/cml.test.js +++ b/bin/cml.test.js @@ -24,9 +24,9 @@ describe('command-line interface tests', () => { environment] --repo Repository URL or slug[string] [default: infer from the environment] --token Personal access token [string] [default: infer from the environment] + --help Show help [boolean] Options: - --help Show help [boolean] --version Show version number [boolean]" `); }); diff --git a/bin/cml/asset/publish.test.js b/bin/cml/asset/publish.test.js index 4dd0b0965..a96fb947e 100644 --- a/bin/cml/asset/publish.test.js +++ b/bin/cml/asset/publish.test.js @@ -18,10 +18,9 @@ describe('CML e2e', () => { from the CI ENV. [string] [default: infer from the environment] --token Personal access token [string] [default: infer from the environment] + --help Show help [boolean] Options: - --help Show help [boolean] - --version Show version number [boolean] --md Output in markdown format [title || name](url) [boolean] -t, --title Markdown title [title](url) or ![](url title) [string] --native Uses driver's native capabilities to upload assets instead diff --git a/bin/cml/check/create.test.js b/bin/cml/check/create.test.js index 939b5928a..28d61c365 100644 --- a/bin/cml/check/create.test.js +++ b/bin/cml/check/create.test.js @@ -45,10 +45,9 @@ describe('CML e2e', () => { --repo Repository URL or slug[string] [default: infer from the environment] --token GITHUB_TOKEN or Github App token. Personal access token won't work [string] [default: infer from the environment] + --help Show help [boolean] Options: - --help Show help [boolean] - --version Show version number [boolean] --commit-sha, --head-sha Commit SHA linked to this comment [string] [default: HEAD] --conclusion Conclusion status of the check diff --git a/bin/cml/comment/create.test.js b/bin/cml/comment/create.test.js index 1914a62bb..9b3de5300 100644 --- a/bin/cml/comment/create.test.js +++ b/bin/cml/comment/create.test.js @@ -24,10 +24,9 @@ describe('Comment integration tests', () => { environment] --repo Repository URL or slug[string] [default: infer from the environment] --token Personal access token [string] [default: infer from the environment] + --help Show help [boolean] Options: - --help Show help [boolean] - --version Show version number [boolean] --pr Post to an existing PR/MR associated with the specified commit [boolean] --commit-sha, --head-sha Commit SHA linked to this comment diff --git a/bin/cml/pr/create.test.js b/bin/cml/pr/create.test.js index 0359ce9de..86a7fd446 100644 --- a/bin/cml/pr/create.test.js +++ b/bin/cml/pr/create.test.js @@ -21,10 +21,7 @@ describe('CML e2e', () => { environment] --repo Repository URL or slug[string] [default: infer from the environment] --token Personal access token [string] [default: infer from the environment] - - Options: - --help Show help [boolean] - --version Show version number [boolean]" + --help Show help [boolean]" `); }); }); diff --git a/bin/cml/repo/prepare.test.js b/bin/cml/repo/prepare.test.js index df4c56fd5..02fbc1615 100644 --- a/bin/cml/repo/prepare.test.js +++ b/bin/cml/repo/prepare.test.js @@ -17,10 +17,9 @@ describe('CML e2e', () => { environment] --repo Repository URL or slug[string] [default: infer from the environment] --token Personal access token [string] [default: infer from the environment] + --help Show help [boolean] Options: - --help Show help [boolean] - --version Show version number [boolean] --unshallow Fetch as much as possible, converting a shallow repository to a complete one [boolean] --user-email Git user email [string] [default: \\"olivaw@iterative.ai\\"] diff --git a/bin/cml/runner/start.test.js b/bin/cml/runner/start.test.js index dc141ddb7..3b6f5a003 100644 --- a/bin/cml/runner/start.test.js +++ b/bin/cml/runner/start.test.js @@ -69,10 +69,7 @@ describe('CML e2e', () => { environment] --repo Repository URL or slug[string] [default: infer from the environment] --token Personal access token [string] [default: infer from the environment] - - Options: - --help Show help [boolean] - --version Show version number [boolean]" + --help Show help [boolean]" `); }); diff --git a/bin/cml/tensorboard/start.test.js b/bin/cml/tensorboard/start.test.js index 97fdfa6a0..ee807fbc2 100644 --- a/bin/cml/tensorboard/start.test.js +++ b/bin/cml/tensorboard/start.test.js @@ -67,10 +67,9 @@ describe('CML e2e', () => { [string] [default: infer from the environment] --token Personal access token [string] [default: infer from the environment] + --help Show help [boolean] Options: - --help Show help [boolean] - --version Show version number [boolean] -c, --credentials TensorBoard credentials as JSON, usually found at ~/.config/tensorboard/credentials/uploader-creds.json [string] [required] diff --git a/bin/cml/workflow/rerun.test.js b/bin/cml/workflow/rerun.test.js index fb8309b93..17a335b39 100644 --- a/bin/cml/workflow/rerun.test.js +++ b/bin/cml/workflow/rerun.test.js @@ -17,11 +17,10 @@ describe('CML e2e', () => { environment] --repo Repository URL or slug[string] [default: infer from the environment] --token Personal access token [string] [default: infer from the environment] + --help Show help [boolean] Options: - --help Show help [boolean] - --version Show version number [boolean] - --id Run identifier to be rerun [string]" + --id Run identifier to be rerun [string]" `); }); });