Skip to content

Latest commit

 

History

History
51 lines (32 loc) · 1.32 KB

File metadata and controls

51 lines (32 loc) · 1.32 KB

tome-cli help

help displays the usage and help text for a script

Synopsis

The help command extracts the usage and help text from a script file and displays it to the user.

Help text is extracted from the script file by searching for the first line that includes "USAGE: ".

When printing long form help text, the help command will print the help text from the script file

starting from the line after the "USAGE: " line and ending on the first blank line.

Example: (more can be found in the examples directory)

#!/bin/bash
# USAGE: script.sh [options] <arg1> <arg2>
# This is the help text for the script
# It can span multiple lines
# and will be displayed to the user when they run "tome-cli help script.sh"

echo 1

In this example the USAGE line is "USAGE: script.sh [options] <arg1> <arg2>"
The help text is the lines following the USAGE line until the first blank line.
tome-cli help [flags]

Options

  -h, --help   help for help

Options inherited from parent commands

  -d, --debug               debug logs
  -e, --executable string   executable name
  -r, --root string         root directory containing scripts (default ".")

SEE ALSO

  • tome-cli - A cli tool to manage scripts as a set of subcommands
Auto generated by spf13/cobra on 10-Dec-2025