databricks-cli/cmd/labs
Andrew Nester c7818560ca
Add usage string when command fails with incorrect arguments (#1276)
## Changes
Add usage string when command fails with incorrect arguments

Fixes #1119

## Tests
Example output

```
> databricks libraries cluster-status 
Error: accepts 1 arg(s), received 0

Usage:
  databricks libraries cluster-status CLUSTER_ID [flags]

Flags:
  -h, --help   help for cluster-status

Global Flags:
      --debug            enable debug logging
  -o, --output type      output type: text or json (default text)
  -p, --profile string   ~/.databrickscfg profile
  -t, --target string    bundle target to use (if applicable)
```
2024-03-12 14:12:34 +00:00
..
github Add `databricks labs` command group (#914) 2023-11-17 12:47:37 +00:00
localcache Add `databricks labs` command group (#914) 2023-11-17 12:47:37 +00:00
project Use Go SDK Iterators when listing resources with the CLI (#1202) 2024-02-21 14:16:36 +00:00
unpack Add `databricks labs` command group (#914) 2023-11-17 12:47:37 +00:00
CODEOWNERS Add `databricks labs` command group (#914) 2023-11-17 12:47:37 +00:00
clear_cache.go Fix `panic: $HOME is not set` (#1027) 2023-11-29 19:08:27 +00:00
install.go Add usage string when command fails with incorrect arguments (#1276) 2024-03-12 14:12:34 +00:00
installed.go Add `databricks labs` command group (#914) 2023-11-17 12:47:37 +00:00
installed_test.go Add `databricks labs` command group (#914) 2023-11-17 12:47:37 +00:00
labs.go Fix `panic: $HOME is not set` (#1027) 2023-11-29 19:08:27 +00:00
list.go Fix `panic: $HOME is not set` (#1027) 2023-11-29 19:08:27 +00:00
list_test.go Add `databricks labs` command group (#914) 2023-11-17 12:47:37 +00:00
show.go Add usage string when command fails with incorrect arguments (#1276) 2024-03-12 14:12:34 +00:00
uninstall.go Add usage string when command fails with incorrect arguments (#1276) 2024-03-12 14:12:34 +00:00
upgrade.go Add usage string when command fails with incorrect arguments (#1276) 2024-03-12 14:12:34 +00:00