Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove global --version flag + remove --debug option from hs help #1262

Merged
merged 13 commits into from
Nov 25, 2024

Conversation

camden11
Copy link
Contributor

@camden11 camden11 commented Nov 22, 2024

Description and Context

See https://git.hubteam.com/HubSpot/hubspot-cli-issues/milestone/26

This adds a new addGlobalOptions function that is called in each top level command, which removes the option to use the --version flag (it can now only be run though hs --version) and adds the --debug option, so we can remove it from the top level.

Unfortunately, yargs doesn't seem to provide a good way to remove the --help option from the help command

Who to Notify

@brandenrodgers @kemmerle @joe-yeager

@camden11 camden11 force-pushed the update-global-flags branch from 7d994e1 to 7e0028e Compare November 22, 2024 20:06
@camden11 camden11 changed the base branch from main to next November 22, 2024 20:43
@camden11 camden11 merged commit d735b4f into next Nov 25, 2024
1 check passed
@camden11 camden11 deleted the update-global-flags branch November 25, 2024 16:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants