Files
ubicloud/spec/routes/api/cli/golden-files/pg eu-central-h1_test2-pg create -s bad -S 64.txt
Jeremy Evans 78f45d392f Improve error output for invalid CLI option arguments
For option arguments that must be members of an array, do the
check in the option parsing by providing an array of allowed
option arguments (e.g. vm create -s bad).

Emit better errors for options arguments that should be integers
(e.g. fw add-rule -s/-e), and for regular arguments that should
be integers (e.g. lb create src-port/dst-port).

Include help output in additional cases:

* invalid id formats with slashes
* invalid/duplicate/missing fields used when multiple fields
  separated by a comma is allowed
* invalid object references when using post subcommands
* invalid location for list -l option
2025-07-02 05:02:05 +09:00

22 lines
686 B
Plaintext

! Invalid argument: -s bad
Create a PostgreSQL database
Usage:
ubi pg location/pg-name create [options]
Options:
-f, --flavor=type flavor
-h, --ha-type=type replication type
-s, --size=size server size
-S, --storage-size=size storage size GB
-v, --version=version PostgreSQL version
Allowed Option Values:
Flavor: standard paradedb lantern
Replication Type: none async sync
Size: standard-2 standard-4 standard-8 standard-16 standard-30 standard-32
standard-60 standard-64 burstable-1 burstable-2
Storage Size: 16 32 64 128 256 512 1024 2048 4096
Version: 17 16