Socket
Socket
Sign inDemoInstall

@oclif/plugin-help

Package Overview
Dependencies
1
Maintainers
2
Versions
151
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @oclif/plugin-help

Standard help for oclif.


Version published
Weekly downloads
1.5M
decreased by-1.19%
Maintainers
2
Created
Weekly downloads
 

Package description

What is @oclif/plugin-help?

The @oclif/plugin-help package is designed to provide a help system for CLI (Command Line Interface) applications built with the oclif (Open CLI Framework). It allows developers to automatically generate and customize help output for their CLI commands.

What are @oclif/plugin-help's main functionalities?

Automatic help generation

This feature automatically generates help text for a specific command within an oclif CLI application. The help text includes the command's description, usage, arguments, flags, and examples.

const { Command, flags } = require('@oclif/command');
const Help = require('@oclif/plugin-help').default;

class MyCommand extends Command {
  async run() {
    // your command logic here
  }
}

MyCommand.description = 'Description of my command';

const help = new Help(this.config);
help.showHelp(['mycommand']);

Custom help classes

Developers can extend the default Help class to create custom help output. This allows for greater control over the formatting and content of the help text displayed to the user.

const { Command } = require('@oclif/command');
const { Help } = require('@oclif/plugin-help');

class MyHelpClass extends Help {
  // override methods to customize help output
}

class MyCommand extends Command {
  static helpClass = MyHelpClass;

  async run() {
    // your command logic here
  }
}

Other packages similar to @oclif/plugin-help

Readme

Source

@oclif/plugin-help

A CLI command to invoke the standard help functionality from oclif/core.

Version Downloads/week License

oclif help [COMMAND]

Display help for oclif.

USAGE
  $ oclif help [COMMAND...] [-n]

ARGUMENTS
  COMMAND...  Command to show help for.

FLAGS
  -n, --nested-commands  Include all nested commands in the output.

DESCRIPTION
  Display help for oclif.

See code: src/commands/help.ts

Contributing

See contributing guide

Keywords

FAQs

Last updated on 13 Apr 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc