hzDocs
hzDocs
Articles / Postshedzr.comIntroduction

Guide

Your First CLI AppConcise Version
Step by step
Concepts
CommandCommand: Invoke programCommand: Presetting ArgsCommand: RedirectToCommand: DynCommandCommand: Aliases from ConfigCommand: Event HandlersFlagFlag: RequiredFlag: Toggle GroupFlag: Valid ArgsFlag: `Head -1` styleFlag: External EditorFlag: NegatableFlag: Leading Plus Sign `+`Flag: Event Handlers解析结果Builtin Commands & Flags帮助子系统Shared App辨析Package level functionsWithOptsBackstage
Howto ...
Auto-close the ClosersRead config into structUsing is DetectorsUsing Store

References

What's New
Packages

Others

Examples
Blueprint
产品发布
产品发布之前
Concepts

WithOpts

WithXXX Options...

cmdr WithOpts

  • WithUnmatchedAsError(b bool)
  • WithStore(conf store.Store, topLevelPrefix ...string)
  • WithRawStore(conf store.Store)
  • WithExternalLoaders(loaders ...cli.Loader)
  • WithExternalLoadersReplaced(loaders ...cli.Loader)
  • WithTasksBeforeParse(tasks ...cli.Task)
  • WithTasksParsed(tasks ...cli.Task)
  • WithTasksBeforeRun(tasks ...cli.Task)
  • WithTasksAfterRun(tasks ...cli.Task)
  • WithTasksPostCleanup(tasks ...cli.Task)
  • WithTasksSetupPeripherals(tasks ...cli.Task)
  • WithPeripherals(peripherals PeripheralMap)
    • Peripheral(name string) basics.Peripheral
    • PeripheralT[T basics.Peripheral](name string) T
  • WithSortInHelpScreen(b bool)
  • WithDontGroupInHelpScreen(b bool)
  • WithDontExecuteAction(b bool)
  • WithForceDefaultAction(b bool)
  • WithAutoEnvBindings(b bool, prefix ...string)
  • WithConfig(conf *cli.Config)

Learn More

Package Level Functions

Builtin Commands

What is Next?

How is this guide?

Last updated on

Package level functions

Package Level Functions...

Backstage

the backstage of cmdr ...

On this page

cmdr WithOpts
Learn More