#compdef pihex
_pihex()
{
_arguments -S \
'--formula=[Formula to use]:formula name:((
bbp\:"Bailey-Borwein-Plouffe formula (default)"
bellard\:"Bellard'\''s formula"))' \
'1: :_guard "^-*" "place of digits (default: 0)"' \
'(- 1 *)'{-V,--version}'[Prints version information]' \
'(- 1 *)'{-h,--help}'[Prints help information]'
}