Advertisement
Guest User

Untitled

a guest
Jan 11th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Rust 1.43 KB | None | 0 0
  1. ```rust
  2. .subcommand(
  3.             SubCommand::with_name("encrypt")
  4.                 .about(
  5.                     "Implements encryption of several common classical ciphers",
  6.                 )
  7.                 .arg(
  8.                     Arg::with_name("type")
  9.                         .short("t")
  10.                         .long("type")
  11.                         .takes_value(true)
  12.                         .help("Select the cipher type"),
  13.                 )
  14.                 .arg(
  15.                     Arg::with_name("key")
  16.                         .short("k")
  17.                         .long("key")
  18.                         .takes_value(true)
  19.                         .help("Provide the key to use"),
  20.                 )
  21.         )
  22.         .subcommand(
  23.             SubCommand::with_name("decrypt")
  24.                 .about(
  25.                     "Implements decryption of several common classical ciphers",
  26.                 )
  27.                 .arg(
  28.                     Arg::with_name("type")
  29.                         .short("t")
  30.                         .long("type")
  31.                         .takes_value(true)
  32.                         .help("Select the cipher type"),
  33.                 )
  34.                 .arg(
  35.                     Arg::with_name("key")
  36.                         .short("k")
  37.                         .long("key")
  38.                         .takes_value(true)
  39.                         .help("Provide the key to use"),
  40.                 )
  41.         );
  42. ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement