skip to content
[readonly]
==> README.md <==
1# @ajax/mesh-args
2
3meshd's command line: every flag, its default and its refusal, as the Rust parses them.
4
5meshd's command line (args.rs; hand-rolled: a dozen flags do not need a parser). Errors are the Rust's, word for word; the CUDA-only flags are refused under another backend (no silent ignoring).
6
7```c
8#include "mesh/args.h"
9```
10
11## Ported from
12
13[alpha-rust-mesh](https://github.com/rsafier/alpha-rust-mesh) (Richard Safier, MIT): crates/mesh-host/src/args.rs: `Args`, `Peer`, `USAGE`, `CUDA_FLAGS`, `backend_of`, `parse`; backend.rs `DEFAULT_BACKEND`.
14
15## Tests
16
17- `tests/args.c`: args.rs's `defaults`, `full`, `backends` and `errors`, one for one, with every error text.
18
19## Differences
20
21- The cluster config is the fleet area's parser (@ajax/mesh-cluster-conf, `mcc_*`); `Peer::Cluster(Topology)` is `cluster` plus `topo`.
22
23## Licence
24
25MIT. See the repository's LICENSE.