Skip to content

Make cvd login display help text on invalid invocations#2211

Open
cjreynol wants to merge 3 commits intogoogle:mainfrom
cjreynol:no_arg_cvd_login
Open

Make cvd login display help text on invalid invocations#2211
cjreynol wants to merge 3 commits intogoogle:mainfrom
cjreynol:no_arg_cvd_login

Conversation

@cjreynol
Copy link
Collaborator

@cjreynol cjreynol commented Mar 3, 2026

If all of the necessary flags are not provided, display the help text to guide the user towards the correct usage.

Bug: 487846108

cjreynol added 3 commits March 2, 2026 18:23
Include whether the request is over SSH in `Oauth2ConsentRequest`.  That
information is used alongside those fields.  This also makes it easier
to push the flag parsing into a helper out of `CvdLoginCommand::Handle`.
To simplify the `Handle` method.
If all of the necessary flags are not provided, display the help text to
guide the user towards the correct usage.

Bug: 487846108
@cjreynol cjreynol requested a review from Databean March 3, 2026 02:29
@cjreynol cjreynol self-assigned this Mar 3, 2026
@cjreynol cjreynol added kokoro:force-run Trigger a presubmit build unconditionally. kokoro:run Run e2e tests. labels Mar 3, 2026
@GoogleCuttlefishTesterBot GoogleCuttlefishTesterBot removed kokoro:run Run e2e tests. kokoro:force-run Trigger a presubmit build unconditionally. labels Mar 3, 2026
@cjreynol cjreynol added this pull request to the merge queue Mar 3, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Mar 3, 2026
@cjreynol cjreynol added this pull request to the merge queue Mar 3, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Mar 3, 2026
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.

3 participants