Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #[macro_use]
- extern crate clap;
- use clap::{App, ArgMatches};
- fn main() {
- let yml = load_yaml!("cl_arguments.yml");
- let matches = App::from_yaml(yml).get_matches();
- # some code goes here
- }
- name: "tool"
- version: "0.1"
- about: "description"
- author: "m00am"
- subcommands:
- - subcommand1:
- args:
- - path:
- index: "1"
- required: true
- default_value: "/tmp/"
- help: "Dummy Path"
- - subcommand2:
- args:
- - other_path:
- index: "1"
- required: true
- help: "A second dummy path"
- [dependencies]
- rand = "*"
- cute = "0.3.0"
- fasthash = "*"
- bio = "*"
- rulinalg = "*"
- serde = "*"
- serde_derive = "*"
- bincode = "*"
- statrs = "*"
- separator = "*"
- termion = "*"
- sysinfo = "*"
- clap = { version = "*", features = ["yaml"] }
- needletail = "*"
- gnuplot = "*"
- time = "*"
- cue = "*"
- [[package]]
- name = "clap"
- version = "2.31.2"
- source = "registry+https://github.com/rust-lang/crates.io-index"
- dependencies = [
- "ansi_term 0.11.0 (registry+https://github.com/rust-lang/crates.io-index)",
- "atty 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)",
- "bitflags 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)",
- "strsim 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
- "textwrap 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)",
- "unicode-width 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)",
- "vec_map 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)",
- "yaml-rust 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)",
- ]
- ...
- [[package]]
- name = "yaml-rust"
- version = "0.3.5"
- source = "registry+https://github.com/rust-lang/crates.io-index"
- name: "tool"
- version: "0.1"
- about: "description"
- author: "m00am"
- subcommands:
- - subcommand1:
- args:
- - path:
- index: 1
- required: true
- default_value: "/tmp/"
- help: "Dummy Path"
- - subcommand2:
- args:
- - other_path:
- index: 1
- required: true
- help: "A second dummy path"
Add Comment
Please, Sign In to add comment