databricks-cli/cmd/sync
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
..
completion.go Update to Go SDK v0.8.0 (#351) 2023-04-21 10:30:20 +02:00
output.go Remove \r from new line print statments (#509) 2023-06-22 13:47:52 +02:00
sync.go Add usage string when command fails with incorrect arguments (#1276) 2024-03-12 14:12:34 +00:00
sync_test.go Make `file_path` and `artifact_path` fields consistent with json tag (#987) 2023-11-15 13:37:26 +00:00