#compdef btm

autoload -U is-at-least

_btm() {
    typeset -A opt_args
    typeset -a _arguments_options
    local ret=1

    if is-at-least 5.2; then
        _arguments_options=(-s -S -C)
    else
        _arguments_options=(-s -C)
    fi

    local context curcontext="$curcontext" state line
    _arguments "${_arguments_options[@]}" \
'-C+[Sets the location of the config file.]' \
'--config=[Sets the location of the config file.]' \
'--color=[Use a color scheme, use --help for supported values.]: :(default default-light gruvbox gruvbox-light nord nord-light)' \
'-t+[Default time value for graphs in ms.]' \
'--default_time_value=[Default time value for graphs in ms.]' \
'--default_widget_count=[Sets the n'\''th selected widget type as the default.]' \
'--default_widget_type=[Sets the default widget type, use --help for more info.]' \
'-r+[Sets a refresh rate in ms.]' \
'--rate=[Sets a refresh rate in ms.]' \
'-d+[The amount in ms changed upon zooming.]' \
'--time_delta=[The amount in ms changed upon zooming.]' \
'-k[Sets the temperature type to Kelvin.]' \
'--kelvin[Sets the temperature type to Kelvin.]' \
'-f[Sets the temperature type to Fahrenheit.]' \
'--fahrenheit[Sets the temperature type to Fahrenheit.]' \
'-c[Sets the temperature type to Celsius.]' \
'--celsius[Sets the temperature type to Celsius.]' \
'--autohide_time[Temporarily shows the time scale in graphs.]' \
'-b[Hides graphs and uses a more basic look.]' \
'--basic[Hides graphs and uses a more basic look.]' \
'--battery[Shows the battery widget.]' \
'-S[Enables case sensitivity by default.]' \
'--case_sensitive[Enables case sensitivity by default.]' \
'--process_command[Show processes as their commands by default.]' \
'--mem_as_value[Defaults to showing process memory usage by value.]' \
'--disable_click[Disables mouse clicks.]' \
'-m[Uses a dot marker for graphs.]' \
'--dot_marker[Uses a dot marker for graphs.]' \
'-g[Groups processes with the same name by default.]' \
'--group[Groups processes with the same name by default.]' \
'-a[Hides the average CPU usage.]' \
'--hide_avg_cpu[Hides the average CPU usage.]' \
'--hide_table_gap[Hides the spacing between table headers and entries.]' \
'--hide_time[Hides the time scale.]' \
'--show_table_scroll_position[Shows the scroll position tracker in table widgets.]' \
'-l[Puts the CPU chart legend to the left side.]' \
'--left_legend[Puts the CPU chart legend to the left side.]' \
'--disable_advanced_kill[Hides advanced options to stop a process on Unix-like systems.]' \
'-R[Enables regex by default.]' \
'--regex[Enables regex by default.]' \
'-T[Defaults to showing the process widget in tree mode.]' \
'--tree[Defaults to showing the process widget in tree mode.]' \
'--network_use_bytes[Displays the network widget using bytes.]' \
'--network_use_log[Displays the network widget with a log scale.]' \
'--network_use_binary_prefix[Displays the network widget with binary prefixes.]' \
'-u[Sets process CPU% to be based on current CPU%.]' \
'--current_usage[Sets process CPU% to be based on current CPU%.]' \
'--use_old_network_legend[DEPRECATED - uses the older network legend.]' \
'-W[Enables whole-word matching by default.]' \
'--whole_word[Enables whole-word matching by default.]' \
'-h[Prints help information.  Use --help for more info.]' \
'--help[Prints help information.  Use --help for more info.]' \
'-V[Prints version information.]' \
'--version[Prints version information.]' \
&& ret=0
    
}

(( $+functions[_btm_commands] )) ||
_btm_commands() {
    local commands; commands=(
        
    )
    _describe -t commands 'btm commands' commands "$@"
}

_btm "$@"