Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: only show forc examples with explicit --help flag (#6013)
## Description closes #6005. As stated in the issue, executing `forc` prints huge output with examples etc. This is not ideal because it is very hard to navigate to list of commands especially with smaller screens. This PR changes the behavor such that executing just `forc` will print: ```console Fuel Orchestrator Usage: forc [OPTIONS] <COMMAND> Commands: addr2line Show location and context of an opcode address in its source file build Compile the current or target project [aliases: b] check Check the current or target project and all of its dependencies for errors clean Removes the default forc compiler output artifact directory, i.e. `<project-name>/out` completions Generate tab-completion scripts for your shell new Create a new Forc project at `<path>` init Create a new Forc project in an existing directory parse-bytecode Parse bytecode file into a debug format test Run the Sway unit tests for the current project [aliases: t] update Update dependencies in the Forc dependencies directory plugins List all forc plugins template Create a new Forc project from a git template contract-id Determine contract-id for a contract. For workspaces outputs all contract ids in the workspace predicate-root Determine predicate-root for a predicate. For workspaces outputs all predicate roots in the workspace help Print this message or the help of the given subcommand(s) Options: -v, --verbose... Use verbose output -s, --silent Silence all output -L, --log-level <LOG_LEVEL> Set the log level -h, --help Print help (see more with '--help') -V, --version Print version ``` with `--help` flag we still show the examples etc.
- Loading branch information