Skip to content

Commit 028e3bb

Browse files
fix(dart-symbol-map): Make --url global argument available
The --url argument was not recognized by the dart-symbol-map command because it was missing from the derive parser schema. Added the url field to the SentryCLI struct to allow global --url usage. Also updated the legacy parser to mark --url as global for consistency with other global arguments. Fixes #3106 Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 53f3fa2 commit 028e3bb

48 files changed

Lines changed: 210 additions & 3 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CHANGELOG.md

Lines changed: 4 additions & 0 deletions

src/commands/derive_parser.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ pub(super) struct SentryCLI {
1818
#[arg(help = "Use the given Sentry auth token")]
1919
pub(super) auth_token: Option<AuthToken>,
2020

21+
#[arg(global = true, long, value_name = "URL")]
22+
#[arg(help = "Fully qualified URL to the Sentry server.{n}[default: https://sentry.io/]")]
23+
pub(super) url: Option<String>,
24+
2125
#[arg(global=true, ignore_case=true, value_parser=["trace", "debug", "info", "warn", "error"])]
2226
#[arg(long, help = "Set the log output verbosity")]
2327
pub(super) log_level: Option<String>,

src/commands/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ fn app() -> Command {
154154
.max_term_width(100)
155155
.subcommand_required(true)
156156
.arg_required_else_help(true)
157-
.arg(Arg::new("url").value_name("URL").long("url").help(
157+
.arg(Arg::new("url").value_name("URL").long("url").global(true).help(
158158
"Fully qualified URL to the Sentry server.{n}\
159159
[default: https://sentry.io/]",
160160
))

tests/integration/_cases/bash_hook/bash_hook-help.trycmd

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ Usage: sentry-cli[EXE] bash-hook [OPTIONS]
77

88
Options:
99
--no-exit Do not turn on -e (exit immediately) flag automatically
10+
--url <URL> Fully qualified URL to the Sentry server.
11+
[default: https://sentry.io/]
1012
--header <KEY:VALUE> Custom headers that should be attached to all requests
1113
in key:value format.
1214
--no-environ Do not send environment variables along

tests/integration/_cases/build/build-help.trycmd

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ Commands:
1111

1212
Options:
1313
-o, --org <ORG> The organization ID or slug.
14+
--url <URL> Fully qualified URL to the Sentry server.
15+
[default: https://sentry.io/]
1416
--header <KEY:VALUE> Custom headers that should be attached to all requests
1517
in key:value format.
1618
-p, --project <PROJECT> The project ID or slug.

tests/integration/_cases/build/build-upload-help-macos.trycmd

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ Options:
1515
-o, --org <ORG>
1616
The organization ID or slug.
1717

18+
--url <URL>
19+
Fully qualified URL to the Sentry server.
20+
[default: https://sentry.io/]
21+
1822
--header <KEY:VALUE>
1923
Custom headers that should be attached to all requests
2024
in key:value format.

tests/integration/_cases/debug_files/debug_files-bundle-jvm-help.trycmd

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ Arguments:
1010

1111
Options:
1212
-o, --org <ORG> The organization ID or slug.
13+
--url <URL> Fully qualified URL to the Sentry server.
14+
[default: https://sentry.io/]
1315
--header <KEY:VALUE> Custom headers that should be attached to all requests
1416
in key:value format.
1517
-p, --project <PROJECT> The project ID or slug.

tests/integration/_cases/debug_files/debug_files-help.trycmd

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ Commands:
1414
help Print this message or the help of the given subcommand(s)
1515

1616
Options:
17+
--url <URL> Fully qualified URL to the Sentry server.
18+
[default: https://sentry.io/]
1719
--header <KEY:VALUE> Custom headers that should be attached to all requests
1820
in key:value format.
1921
--auth-token <AUTH_TOKEN> Use the given Sentry auth token.

tests/integration/_cases/debug_files/debug_files-no-subcommand.trycmd

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ Commands:
1414
help Print this message or the help of the given subcommand(s)
1515

1616
Options:
17+
--url <URL> Fully qualified URL to the Sentry server.
18+
[default: https://sentry.io/]
1719
--header <KEY:VALUE> Custom headers that should be attached to all requests
1820
in key:value format.
1921
--auth-token <AUTH_TOKEN> Use the given Sentry auth token.

tests/integration/_cases/debug_files/not_windows/debug_files-upload-help.trycmd

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ Arguments:
1010

1111
Options:
1212
-o, --org <ORG> The organization ID or slug.
13+
--url <URL> Fully qualified URL to the Sentry server.
14+
[default: https://sentry.io/]
1315
--header <KEY:VALUE> Custom headers that should be attached to all requests
1416
in key:value format.
1517
-p, --project <PROJECT> The project ID or slug.

0 commit comments

Comments
 (0)