Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## Unreleased

### Deprecations

- Deprecated the `upload-proguard` subcommand's `--platform` flag. This flag appears to have been a no-op for some time, so we will remove it in the next major.

## 2.57.0

### New Features
Expand Down
13 changes: 11 additions & 2 deletions src/commands/upload_proguard.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,13 @@ pub fn make_command(command: Command) -> Command {
)
.arg(
Arg::new("platform")
.hide(true)
.long("platform")
.value_name("PLATFORM")
.requires("app_id")
.help(
"Optionally defines the platform for the app association. \
[defaults to 'android']",
"[DEPRECATED] This flag is a no-op, scheduled \
for removal in Sentry CLI 3.0.0.",
),
)
.arg(
Expand Down Expand Up @@ -145,6 +146,14 @@ pub fn make_command(command: Command) -> Command {
}

pub fn execute(matches: &ArgMatches) -> Result<()> {
if matches.get_one::<String>("platform").is_some() {
log::warn!(
"[DEPRECATION NOTICE] The --platform argument is deprecated, \
and is scheduled for removal in Sentry CLI 3.0.0. \
The argument is a no-op."
);
}

let paths: Vec<_> = match matches.get_many::<String>("paths") {
Some(paths) => paths.collect(),
None => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ Options:
--auth-token <AUTH_TOKEN> Use the given Sentry auth token.
--log-level <LOG_LEVEL> Set the log output verbosity. [possible values: trace, debug, info,
warn, error]
--platform <PLATFORM> Optionally defines the platform for the app association. [defaults
to 'android']
--quiet Do not print any output while preserving correct exit code. This
flag is currently implemented only for selected subcommands.
[aliases: --silent]
Expand Down
Loading