summaryrefslogtreecommitdiffstats
path: root/ozone-cli/src/cli.rs
diff options
context:
space:
mode:
Diffstat (limited to 'ozone-cli/src/cli.rs')
-rw-r--r--ozone-cli/src/cli.rs24
1 files changed, 23 insertions, 1 deletions
diff --git a/ozone-cli/src/cli.rs b/ozone-cli/src/cli.rs
index 6ba23d3..8ed2f33 100644
--- a/ozone-cli/src/cli.rs
+++ b/ozone-cli/src/cli.rs
@@ -176,11 +176,33 @@ pub struct ProfileSelectArgs {
pub gamertag: Option<String>
}
+#[derive(Args, Debug)]
+pub struct ProfileSignInArgs {
+ /// Elect to use an alternate client id to authenticate to Minecraft.
+ ///
+ /// Avoid using this if possible,
+ /// since you will not be able to easily revoke oauth access to the launcher.
+ ///
+ /// Situations when you might need to use this are if your Microsoft account's birthday
+ /// is set to a date fewer than 18 years in the past while not in a family.
+ #[arg(long)]
+ pub use_alt_client_id: bool,
+
+ #[arg(long)]
+ pub no_select: bool
+}
+
#[derive(Subcommand, Debug)]
pub enum AccountCommand {
Select(ProfileSelectArgs),
Forget,
- SignIn
+
+ #[command(name = "signin")]
+ SignIn(ProfileSignInArgs),
+
+ List,
+ Info,
+ Refresh
}
#[derive(Args, Debug)]