Skip to content

Commit e6ccf38

Browse files
authored
removed: quiet argument to stac validate (#471)
`no_output` was removed in stac-utils/stac-validator@296b3ae
1 parent e985fb6 commit e6ccf38

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
### Changed
11+
1012
- Make computation of statistics and histogram optional for `core.add_raster.add_raster_to_item` ([#467](https://github.com/stac-utils/stactools/pull/467))
1113
- Make **stac-validator** and **stac-check** optional dependencies ([#468](https://github.com/stac-utils/stactools/pull/468))
1214

15+
### Removed
16+
17+
- `--quiet` argument to `stac validate` ([#471](https://github.com/stac-utils/stactools/pull/471))
18+
1319
## [0.5.2] - 2023-09-20
1420

1521
### Fixed

src/stactools/cli/commands/validate.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@ def create_validate_command(cli: click.Group) -> click.Command:
2121
"--validate-assets/--no-validate-assets", help="Validate assets.", default=True
2222
)
2323
@click.option("-v", "--verbose", is_flag=True, help="Enables verbose output.")
24-
@click.option(
25-
"--quiet/--no-quiet", help="Do not print output to console.", default=False
26-
)
2724
@click.option(
2825
"--log-file",
2926
help="Save output to file (local filepath).",
@@ -34,7 +31,6 @@ def validate_command(
3431
validate_links: bool,
3532
validate_assets: bool,
3633
verbose: bool,
37-
quiet: bool,
3834
log_file: Optional[str],
3935
) -> None:
4036
"""Validates a STAC object.
@@ -52,12 +48,10 @@ def validate_command(
5248
links=validate_links,
5349
assets=validate_assets,
5450
verbose=verbose,
55-
no_output=quiet,
5651
log=log_file or "",
5752
)
5853
is_valid = validate.run()
59-
if not quiet:
60-
click.echo(json.dumps(validate.message, indent=4))
54+
click.echo(json.dumps(validate.message, indent=4))
6155
if is_valid:
6256
sys.exit(0)
6357
else:

0 commit comments

Comments
 (0)