Skip to content

Improve help for command elastic-package profile create  #1249

@gsantoro

Description

@gsantoro

The elastic-package command elastic-package profile create has no reference in the help to a required argument profile-name

Help output

➜ elastic-package profiles create --help
could not determine benchmark reports folder: locating build directory failed: can't create new build directory: package can be only built inside of a Git repository (.git folder is used as reference point)2023/05/04 13:45:21  WARN CommitHash is undefined, in both ~/.elastic-package/version and the compiled binary, config may be out of date.
Create a new profile

Usage:
  elastic-package profiles create [flags]

Flags:
      --from string   copy profile from the specified existing profile
  -h, --help          help for create

Global Flags:
  -v, --verbose   verbose mode

So when I try to run the command without that required parameter it fails with the following error without saying what is the name of the required argument or how to fix the error.

❯ elastic-package profiles create --from default -v
could not determine benchmark reports folder: locating build directory failed: can't create new build directory: package can be only built inside of a Git repository (.git folder is used as reference point)2023/05/04 13:24:51  WARN CommitHash is undefined, in both ~/.elastic-package/version and the compiled binary, config may be out of date.
2023/05/04 13:24:51 DEBUG Enable verbose logging
Error: create requires an argument

This is the version that I am using

➜ elastic-package version
could not determine benchmark reports folder: locating build directory failed: can't create new build directory: package can be only built inside of a Git repository (.git folder is used as reference point)2023/05/04 13:59:43  WARN CommitHash is undefined, in both ~/.elastic-package/version and the compiled binary, config may be out of date.
elastic-package v0.79.0 version-hash undefined (build time: unknown)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions