
Optional argument parsing feature with structopt (!1020)

Supports the `advanced_arg_parsing` feature to use structopt to perform argument parsing of the shell. Do not enable this feature if you want a performant shell. Additionally modifies argument parsing to store values in a new `CommandLineArgs` structure.
Showing
- Cargo.lock 32 additions, 0 deletionsCargo.lock
- Cargo.toml 4 additions, 0 deletionsCargo.toml
- examples/help.out 15 additions, 16 deletionsexamples/help.out
- examples/run_examples.sh 24 additions, 16 deletionsexamples/run_examples.sh
- src/binary/mod.rs 16 additions, 16 deletionssrc/binary/mod.rs
- src/main.rs 133 additions, 51 deletionssrc/main.rs
... | ... | @@ -20,6 +20,9 @@ repository = "https://gitlab.redox-os.org/redox-os/ion" |
version = "1.0.0-alpha" | ||
edition = "2018" | ||
[features] | ||
advanced_arg_parsing = [] | ||
[workspace] | ||
members = [ | ||
"members/braces", "members/builtins", "members/lexers", "members/sys", | ||
... | ... | @@ -74,6 +77,7 @@ itertools = "0.8" |
lexical = "2.0" | ||
object-pool = "0.3.1" | ||
auto_enums = "0.5.5" | ||
structopt = "^0.2" | ||
[lib] | ||
path = "src/lib/lib.rs" | ||
... | ... |
Please register or sign in to comment