complete -c rqbit -n "__fish_use_subcommand" -s v -d 'The console loglevel' -r -f -a "{trace	'',debug	'',info	'',warn	'',error	''}"
complete -c rqbit -n "__fish_use_subcommand" -l log-file -d 'The log filename to also write to in addition to the console' -r
complete -c rqbit -n "__fish_use_subcommand" -l log-file-rust-log -d 'The value for RUST_LOG in the log file' -r
complete -c rqbit -n "__fish_use_subcommand" -s i -l tracker-refresh-interval -d 'The interval to poll trackers, e.g. 30s. Trackers send the refresh interval when we connect to them. Often this is pretty big, e.g. 30 minutes. This can force a certain value' -r
complete -c rqbit -n "__fish_use_subcommand" -l http-api-listen-addr -d 'The listen address for HTTP API' -r
complete -c rqbit -n "__fish_use_subcommand" -l peer-connect-timeout -d 'The connect timeout, e.g. 1s, 1.5s, 100ms etc' -r
complete -c rqbit -n "__fish_use_subcommand" -l peer-read-write-timeout -d 'The connect timeout, e.g. 1s, 1.5s, 100ms etc' -r
complete -c rqbit -n "__fish_use_subcommand" -s t -l worker-threads -d 'How many threads to spawn for the executor' -r
complete -c rqbit -n "__fish_use_subcommand" -l tcp-min-port -d 'The minimal port to listen for incoming connections' -r
complete -c rqbit -n "__fish_use_subcommand" -l tcp-max-port -d 'The maximal port to listen for incoming connections' -r
complete -c rqbit -n "__fish_use_subcommand" -s s -l single-thread-runtime -d 'Set this flag if you want to use tokio\'s single threaded runtime. It MAY perform better, but the main purpose is easier debugging, as time profilers work better with this one'
complete -c rqbit -n "__fish_use_subcommand" -l disable-dht
complete -c rqbit -n "__fish_use_subcommand" -l disable-dht-persistence -d 'Set this to disable DHT reading and storing it\'s state. For now this is a useful workaround if you want to launch multiple rqbit instances, otherwise DHT port will conflict'
complete -c rqbit -n "__fish_use_subcommand" -l disable-tcp-listen
complete -c rqbit -n "__fish_use_subcommand" -l disable-upnp -d 'If set, will try to publish the chosen port through upnp on your router'
complete -c rqbit -n "__fish_use_subcommand" -s h -l help -d 'Print help'
complete -c rqbit -n "__fish_use_subcommand" -s V -l version -d 'Print version'
complete -c rqbit -n "__fish_use_subcommand" -f -a "server"
complete -c rqbit -n "__fish_use_subcommand" -f -a "download"
complete -c rqbit -n "__fish_use_subcommand" -f -a "completions"
complete -c rqbit -n "__fish_use_subcommand" -f -a "help" -d 'Print this message or the help of the given subcommand(s)'
complete -c rqbit -n "__fish_seen_subcommand_from server; and not __fish_seen_subcommand_from start; and not __fish_seen_subcommand_from help" -s h -l help -d 'Print help'
complete -c rqbit -n "__fish_seen_subcommand_from server; and not __fish_seen_subcommand_from start; and not __fish_seen_subcommand_from help" -f -a "start"
complete -c rqbit -n "__fish_seen_subcommand_from server; and not __fish_seen_subcommand_from start; and not __fish_seen_subcommand_from help" -f -a "help" -d 'Print this message or the help of the given subcommand(s)'
complete -c rqbit -n "__fish_seen_subcommand_from server; and __fish_seen_subcommand_from start" -l persistence-filename -r
complete -c rqbit -n "__fish_seen_subcommand_from server; and __fish_seen_subcommand_from start" -l disable-persistence -d 'Disable server persistence. It will not read or write its state to disk.'
complete -c rqbit -n "__fish_seen_subcommand_from server; and __fish_seen_subcommand_from start" -s h -l help -d 'Print help'
complete -c rqbit -n "__fish_seen_subcommand_from server; and __fish_seen_subcommand_from help; and not __fish_seen_subcommand_from start; and not __fish_seen_subcommand_from help" -f -a "start"
complete -c rqbit -n "__fish_seen_subcommand_from server; and __fish_seen_subcommand_from help; and not __fish_seen_subcommand_from start; and not __fish_seen_subcommand_from help" -f -a "help" -d 'Print this message or the help of the given subcommand(s)'
complete -c rqbit -n "__fish_seen_subcommand_from download" -s o -l output-folder -d 'The output folder to write to. If not exists, it will be created. If not specified, would use the server\'s output folder. If there\'s no server running, this is required' -r
complete -c rqbit -n "__fish_seen_subcommand_from download" -s s -l sub-folder -d 'The sub folder within output folder to write to. Useful when you have a server running with output_folder configured, and don\'t want to specify the full path every time' -r
complete -c rqbit -n "__fish_seen_subcommand_from download" -s r -l filename-re -d 'If set, only the file whose filename matching this regex will be downloaded' -r
complete -c rqbit -n "__fish_seen_subcommand_from download" -l initial-peers -r
complete -c rqbit -n "__fish_seen_subcommand_from download" -s l -l list -d 'Only list the torrent metadata contents, don\'t do anything else'
complete -c rqbit -n "__fish_seen_subcommand_from download" -l overwrite -d 'Set if you are ok to write on top of existing files'
complete -c rqbit -n "__fish_seen_subcommand_from download" -s e -l exit-on-finish -d 'Exit the program once the torrents complete download'
complete -c rqbit -n "__fish_seen_subcommand_from download" -l disable-trackers
complete -c rqbit -n "__fish_seen_subcommand_from download" -s h -l help -d 'Print help'
complete -c rqbit -n "__fish_seen_subcommand_from completions" -s h -l help -d 'Print help'
complete -c rqbit -n "__fish_seen_subcommand_from help; and not __fish_seen_subcommand_from server; and not __fish_seen_subcommand_from download; and not __fish_seen_subcommand_from completions; and not __fish_seen_subcommand_from help" -f -a "server"
complete -c rqbit -n "__fish_seen_subcommand_from help; and not __fish_seen_subcommand_from server; and not __fish_seen_subcommand_from download; and not __fish_seen_subcommand_from completions; and not __fish_seen_subcommand_from help" -f -a "download"
complete -c rqbit -n "__fish_seen_subcommand_from help; and not __fish_seen_subcommand_from server; and not __fish_seen_subcommand_from download; and not __fish_seen_subcommand_from completions; and not __fish_seen_subcommand_from help" -f -a "completions"
complete -c rqbit -n "__fish_seen_subcommand_from help; and not __fish_seen_subcommand_from server; and not __fish_seen_subcommand_from download; and not __fish_seen_subcommand_from completions; and not __fish_seen_subcommand_from help" -f -a "help" -d 'Print this message or the help of the given subcommand(s)'
complete -c rqbit -n "__fish_seen_subcommand_from help; and __fish_seen_subcommand_from server; and not __fish_seen_subcommand_from start" -f -a "start"
