daily pastebin goal
5%
SHARE
TWEET

Untitled

a guest Apr 21st, 2018 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #[macro_use]
  2. extern crate clap;
  3. use clap::{App, ArgMatches};
  4.  
  5. fn main() {
  6.     let yml = load_yaml!("cl_arguments.yml");
  7.     let matches = App::from_yaml(yml).get_matches();
  8.     # some code goes here
  9. }
  10.    
  11. name: "tool"
  12. version: "0.1"
  13. about: "description"
  14. author: "m00am"
  15.  
  16. subcommands:
  17.   - subcommand1:
  18.       args:
  19.         - path:
  20.             index: "1"
  21.             required: true
  22.             default_value: "/tmp/"
  23.             help: "Dummy Path"
  24.   - subcommand2:
  25.       args:
  26.          - other_path:
  27.              index: "1"
  28.              required: true
  29.              help: "A second dummy path"
  30.    
  31. [dependencies]
  32. rand = "*"
  33. cute = "0.3.0"
  34. fasthash = "*"
  35. bio = "*"
  36. rulinalg = "*"
  37. serde = "*"
  38. serde_derive = "*"
  39. bincode = "*"
  40. statrs = "*"
  41. separator = "*"
  42. termion = "*"
  43. sysinfo = "*"
  44. clap = { version = "*", features = ["yaml"] }
  45. needletail = "*"
  46. gnuplot = "*"
  47. time = "*"
  48. cue = "*"
  49.    
  50. [[package]]
  51. name = "clap"
  52. version = "2.31.2"
  53. source = "registry+https://github.com/rust-lang/crates.io-index"
  54. dependencies = [
  55.  "ansi_term 0.11.0 (registry+https://github.com/rust-lang/crates.io-index)",
  56.  "atty 0.2.8 (registry+https://github.com/rust-lang/crates.io-index)",
  57.  "bitflags 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)",
  58.  "strsim 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
  59.  "textwrap 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)",
  60.  "unicode-width 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)",
  61.  "vec_map 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)",
  62.  "yaml-rust 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)",
  63. ]
  64.  
  65. ...
  66.  
  67. [[package]]
  68. name = "yaml-rust"
  69. version = "0.3.5"
  70. source = "registry+https://github.com/rust-lang/crates.io-index"
  71.    
  72. name: "tool"
  73. version: "0.1"
  74. about: "description"
  75. author: "m00am"
  76.  
  77. subcommands:
  78.   - subcommand1:
  79.       args:
  80.         - path:
  81.             index: 1
  82.             required: true
  83.             default_value: "/tmp/"
  84.             help: "Dummy Path"
  85.   - subcommand2:
  86.       args:
  87.          - other_path:
  88.              index: 1
  89.              required: true
  90.              help: "A second dummy path"
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top