1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
//! Built-in option definitions for aria2-rust.
//!
//! This module contains the registration of all built-in configuration
//! options, organized by category. Each category has its own registration
//! method on [`OptionRegistry`](super::OptionRegistry) for clear separation
//! of concerns.
//!
//! # Original CLI Contract
//!
//! The registry keeps a Rust-owned baseline for the original public short
//! options. They are compatibility data, not an internal prioritization
//! scheme, and are intentionally independent of the Rust field layout:
//!
//! `-a file-allocation`, `-c continue`, `-d dir`, `-D daemon`,
//! `-i input-file`, `-j max-concurrent-downloads`,
//! `-k min-split-size`, `-l log`, `-m max-tries`, `-M metalink-file`,
//! `-n no-netrc`, `-o out`, `-O index-out`, `-p ftp-pasv`,
//! `-P parameterized-uri`, `-q quiet`,
//! `-R remote-time`, `-s split`, `-S show-files`, `-t timeout`,
//! `-T torrent-file`, `-u max-upload-limit`, `-U user-agent`,
//! `-V check-integrity`, `-x max-connection-per-server`, and
//! `-Z force-sequential`.
//!
//! `-h/--help` and `-v/--version` are CLI actions rather than registry
//! options. The Rust CLI additionally accepts `-B`, `-e`, `-g`, `-G`, `-I`,
//! `-L`, `-r`, and `-X` as additive aliases for long options that have no
//! upstream short form. These aliases are Rust product extensions and are
//! tested separately from the original short-option contract.
/// Extension trait that adds categorized registration methods to
/// [`OptionRegistry`](super::OptionRegistry).
///
/// This trait is implemented for [`super::OptionRegistry`] and provides one
/// method per option category, making it easy to register options in logical
/// groups or to selectively enable/disable categories.
// Trait methods are called dynamically via impl blocks
pub
// Note: The impl RegisterOptions for OptionRegistry block is in option.rs
// since OptionRegistry is defined there. The individual register_*_options
// methods are defined in the category sub-modules (general.rs, http_ftp.rs,
// etc.) as separate impl blocks.