Skip to content

Commit

Permalink
tests: update usage instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
gjcolombo committed Jan 10, 2024
1 parent 3f3b7c6 commit 9631086
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dev-tools/omdb/src/bin/omdb/db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,16 +142,16 @@ pub struct DbArgs {

#[derive(Debug, Args)]
pub struct DbFetchOptions {
/// The maximum number of rows a DB query should be allowed to try to fetch.
/// limit to apply to queries that fetch rows
#[clap(
long = "fetch-limit",
default_value_t = NonZeroU32::new(500).unwrap(),
env("OMDB_FETCH_LIMIT"),
)]
fetch_limit: NonZeroU32,

/// Whether to include soft-deleted records when enumerating objects that
/// can be soft-deleted.
/// whether to include soft-deleted records when enumerating objects that
/// can be soft-deleted
#[clap(long, default_value_t = false)]
include_deleted: bool,
}
Expand Down
4 changes: 4 additions & 0 deletions dev-tools/omdb/tests/usage_errors.out
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ Options:
--db-url <DB_URL> URL of the database SQL interface [env: OMDB_DB_URL=]
--fetch-limit <FETCH_LIMIT> limit to apply to queries that fetch rows [env:
OMDB_FETCH_LIMIT=] [default: 500]
--include-deleted whether to include soft-deleted records when enumerating objects
that can be soft-deleted
-h, --help Print help
=============================================
EXECUTING COMMAND: omdb ["db", "--help"]
Expand All @@ -131,6 +133,8 @@ Options:
--db-url <DB_URL> URL of the database SQL interface [env: OMDB_DB_URL=]
--fetch-limit <FETCH_LIMIT> limit to apply to queries that fetch rows [env:
OMDB_FETCH_LIMIT=] [default: 500]
--include-deleted whether to include soft-deleted records when enumerating objects
that can be soft-deleted
-h, --help Print help
---------------------------------------------
stderr:
Expand Down

0 comments on commit 9631086

Please sign in to comment.