├── .github └── workflows │ └── ci.yaml ├── .gitignore ├── CHANGELOG.md ├── Cargo.toml ├── LICENSE-APACHE ├── LICENSE-MIT ├── README.md ├── bors.toml ├── crates ├── xflags-macros │ ├── Cargo.toml │ ├── src │ │ ├── ast.rs │ │ ├── emit.rs │ │ ├── lib.rs │ │ ├── parse.rs │ │ └── update.rs │ └── tests │ │ ├── data │ │ ├── aliases.rs │ │ ├── empty.rs │ │ ├── help.rs │ │ ├── repeated_pos.rs │ │ ├── smoke.rs │ │ └── subcommands.rs │ │ └── it │ │ ├── aliases.rs │ │ ├── empty.rs │ │ ├── help.rs │ │ ├── main.rs │ │ ├── repeated_pos.rs │ │ ├── smoke.rs │ │ └── subcommands.rs └── xflags │ ├── Cargo.toml │ ├── examples │ ├── hello-generated.rs │ ├── hello.rs │ ├── immediate-mode.rs │ ├── longer.rs │ └── non-utf8.rs │ └── src │ ├── lib.rs │ └── rt.rs ├── rustfmt.toml └── xtask ├── Cargo.toml └── src ├── main.rs └── tidy.rs /.github/workflows/ci.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matklad/xflags/HEAD/.github/workflows/ci.yaml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /target 2 | Cargo.lock 3 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matklad/xflags/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matklad/xflags/HEAD/Cargo.toml -------------------------------------------------------------------------------- /LICENSE-APACHE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matklad/xflags/HEAD/LICENSE-APACHE -------------------------------------------------------------------------------- /LICENSE-MIT: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matklad/xflags/HEAD/LICENSE-MIT -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matklad/xflags/HEAD/README.md -------------------------------------------------------------------------------- /bors.toml: -------------------------------------------------------------------------------- 1 | status = [ "Rust" ] 2 | delete_merged_branches = true 3 | -------------------------------------------------------------------------------- /crates/xflags-macros/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matklad/xflags/HEAD/crates/xflags-macros/Cargo.toml -------------------------------------------------------------------------------- /crates/xflags-macros/src/ast.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matklad/xflags/HEAD/crates/xflags-macros/src/ast.rs -------------------------------------------------------------------------------- /crates/xflags-macros/src/emit.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matklad/xflags/HEAD/crates/xflags-macros/src/emit.rs -------------------------------------------------------------------------------- /crates/xflags-macros/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matklad/xflags/HEAD/crates/xflags-macros/src/lib.rs -------------------------------------------------------------------------------- /crates/xflags-macros/src/parse.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matklad/xflags/HEAD/crates/xflags-macros/src/parse.rs -------------------------------------------------------------------------------- /crates/xflags-macros/src/update.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matklad/xflags/HEAD/crates/xflags-macros/src/update.rs -------------------------------------------------------------------------------- /crates/xflags-macros/tests/data/aliases.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matklad/xflags/HEAD/crates/xflags-macros/tests/data/aliases.rs -------------------------------------------------------------------------------- /crates/xflags-macros/tests/data/empty.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matklad/xflags/HEAD/crates/xflags-macros/tests/data/empty.rs -------------------------------------------------------------------------------- /crates/xflags-macros/tests/data/help.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matklad/xflags/HEAD/crates/xflags-macros/tests/data/help.rs -------------------------------------------------------------------------------- /crates/xflags-macros/tests/data/repeated_pos.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matklad/xflags/HEAD/crates/xflags-macros/tests/data/repeated_pos.rs -------------------------------------------------------------------------------- /crates/xflags-macros/tests/data/smoke.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matklad/xflags/HEAD/crates/xflags-macros/tests/data/smoke.rs -------------------------------------------------------------------------------- /crates/xflags-macros/tests/data/subcommands.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matklad/xflags/HEAD/crates/xflags-macros/tests/data/subcommands.rs -------------------------------------------------------------------------------- /crates/xflags-macros/tests/it/aliases.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matklad/xflags/HEAD/crates/xflags-macros/tests/it/aliases.rs -------------------------------------------------------------------------------- /crates/xflags-macros/tests/it/empty.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matklad/xflags/HEAD/crates/xflags-macros/tests/it/empty.rs -------------------------------------------------------------------------------- /crates/xflags-macros/tests/it/help.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matklad/xflags/HEAD/crates/xflags-macros/tests/it/help.rs -------------------------------------------------------------------------------- /crates/xflags-macros/tests/it/main.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matklad/xflags/HEAD/crates/xflags-macros/tests/it/main.rs -------------------------------------------------------------------------------- /crates/xflags-macros/tests/it/repeated_pos.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matklad/xflags/HEAD/crates/xflags-macros/tests/it/repeated_pos.rs -------------------------------------------------------------------------------- /crates/xflags-macros/tests/it/smoke.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matklad/xflags/HEAD/crates/xflags-macros/tests/it/smoke.rs -------------------------------------------------------------------------------- /crates/xflags-macros/tests/it/subcommands.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matklad/xflags/HEAD/crates/xflags-macros/tests/it/subcommands.rs -------------------------------------------------------------------------------- /crates/xflags/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matklad/xflags/HEAD/crates/xflags/Cargo.toml -------------------------------------------------------------------------------- /crates/xflags/examples/hello-generated.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matklad/xflags/HEAD/crates/xflags/examples/hello-generated.rs -------------------------------------------------------------------------------- /crates/xflags/examples/hello.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matklad/xflags/HEAD/crates/xflags/examples/hello.rs -------------------------------------------------------------------------------- /crates/xflags/examples/immediate-mode.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matklad/xflags/HEAD/crates/xflags/examples/immediate-mode.rs -------------------------------------------------------------------------------- /crates/xflags/examples/longer.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matklad/xflags/HEAD/crates/xflags/examples/longer.rs -------------------------------------------------------------------------------- /crates/xflags/examples/non-utf8.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matklad/xflags/HEAD/crates/xflags/examples/non-utf8.rs -------------------------------------------------------------------------------- /crates/xflags/src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matklad/xflags/HEAD/crates/xflags/src/lib.rs -------------------------------------------------------------------------------- /crates/xflags/src/rt.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matklad/xflags/HEAD/crates/xflags/src/rt.rs -------------------------------------------------------------------------------- /rustfmt.toml: -------------------------------------------------------------------------------- 1 | reorder_modules = false 2 | use_small_heuristics = "Max" 3 | -------------------------------------------------------------------------------- /xtask/Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matklad/xflags/HEAD/xtask/Cargo.toml -------------------------------------------------------------------------------- /xtask/src/main.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matklad/xflags/HEAD/xtask/src/main.rs -------------------------------------------------------------------------------- /xtask/src/tidy.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/matklad/xflags/HEAD/xtask/src/tidy.rs --------------------------------------------------------------------------------