/ program / 2.0 / bashcompletion.html

Table of content

Parameters

Variables

Templates


Details

Parameters

Variables


Default value: __ _bashcompletion

Default value: __ _getoptionname

Default value: __ _appendfsitems

Default value: __ _getfindpermoptions

Templates


Add trailing folder / to all folder results
  1. variableName
    Default value: COMPREPLY
  1. path
  2. optionName
    Default value: option
  3. currentVarName
    Default value: current
  1. optionName
    Default value: option
  2. currentVarName
    Default value: current
  1. optionName
    Default value: option
  2. currentVarName
    Default value: current
  3. root
    Default value: .
  1. optionName
    Default value: option
  2. currentVarName
    Default value: current
  3. root
  1. optionName
    Default value: option
  2. currentVarName
    Default value: current
  3. root

Add path type related restrictions
  1. optionName
    Default value: 'option'
  2. currentVarName
    Default value: 'current'
  3. root
  1. optionName
    Default value: option
  2. currentVarName
    Default value: current
  3. root

declare a subcommand option completion function
  1. subcommand
    Default value: .

The main template Called only if prg:program/prg:name exists
  1. program
    Default value: ..