SHTK_CLI_USAGE_ERROR(3)
Okay bestie, welcome to the SHTK_CLI_USAGE_ERROR(3) page from the Library Functions Manual. The star is shtk_cli_usage_error, and yes itβs iconic. β¨
πΈ NAME πΈ
shtk_cli_usage_error β prints a usage error and exits. Thatβs literally it, and itβs lowkey a lifesaver. π
π LIBRARY π
shtk_import cli
β¨ SYNOPSIS β¨
shtk_cli_usage_error message1 [.. messageN]
π DESCRIPTION π
The shtk_cli_usage_error function prints the given usage error message to stderr and terminates execution of the script with a return value of 1. The message can be provided as one or more arguments as depicted by message1 to messageN; all arguments are concatenated together into a single line. no cap. π«Ά
The printed message has the following form, where βprognameβ is determined by shtk_cli_progname(3):
progname: E: message1 .. messageN
Type 'man progname' for help.
shtk_cli_usage_error should be used to inform the user of problems directly caused by his invocation of the script (e.g. the use of an invalid flag). Note that the printed error message refers to a manual page for the script, so you should make sure to provide one.
Bestie, that printed message points users to a manual page for the script β make sure one actually exists. π
π SEE ALSO π
π§ HISTORY π§
shtk_cli_usage_error first appeared in shtk 1.0.
k byeee π β this page is from Debian, dated November 5, 2014, and itβs the SHTK_CLI_USAGE_ERROR(3) page. slay β¨π
π¦ where this page comes from
- nixos 26.05: shtk 1.7
- nixpkgs unstable: shtk 1.7
- Copyright 2014 Google Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms