Updating deprecated methods in clap

pmeunier
Apr 14, 2022, 11:46 AM
6ZHY3XTG6JIVKAJTEYS6IRZR3PTRRMISCQGIIPBXLUOCIL72TEWQC

Dependencies

  • [2] PIQCNEEB Upgrading to Clap 3.0.0-alpha.5
  • [3] OKE6SXPP improve docs, feedback for pijul key
  • [4] FMKKWCFV Better clap attributes
  • [5] 4OCC6D42 Recursive add
  • [6] CCLLB7OI Upgrading to Sanakirja 0.15 + version bump
  • [7] EEBKW7VT Keys and identities
  • [8] W5HHTRPK Rename the `mv` command to `move`
  • [9] A3RM526Y Integrating identity malleability
  • [10] IXWN5CYP pijul: enable colored help messages
  • [11] I52XSRUH Massive cleanup, and simplification
  • [12] 62XVBWPY remove redundant Clap attributes
  • [13] TPQHDDNC pijul add --force know adds ignored files
  • [14] L4JXJHWX pijul/*: reorganize imports and remove extern crate
  • [15] AEPEFS7O Write help for each argument
  • [16] SXEYMYF7 Fixing the bad changes in history (unfortunately, by rebooting).
  • [17] 2RXOCWUW Making libpijul deterministic (and getting rid of `rand`)
  • [18] RG4YZPKL file_operations: remove the counter-intuitive --repository options
  • [19] TZVUNELW Documentation comments
  • [20] YVA72CP2 Default feedback for the `pijul git` command
  • [21] OFQY3GUU Formatting and versions
  • [22] ZHABNS3S Canonicalize all paths
  • [23] GUL4M5FI Cleanup and formatting
  • [24] UTDZKZGP infer subcommands
  • [25] 3H6Q5LDS Fixing a bug with the salt argument in `mv`

Change contents

  • replacement in pijul/src/main.rs at line 12
    [4.11258][2.0:46]()
    use clap::{AppSettings, ColorChoice, Parser};
    [4.11258]
    [4.0]
    use clap::{ColorChoice, Parser};
  • replacement in pijul/src/main.rs at line 22
    [2.72][4.0:8](),[4.84405][4.0:8](),[4.8][4.32:57](),[4.57][2.73:103](),[2.103][4.103:146](),[4.103][4.103:146](),[4.146][4.154:157](),[4.154][4.154:157]()
    #[clap(
    version,
    author,
    color(ColorChoice::Auto),
    setting(AppSettings::InferSubcommands)
    )]
    [2.72]
    [4.84468]
    #[clap(version, author, color(ColorChoice::Auto), infer_subcommands = true)]
  • replacement in pijul/src/main.rs at line 57
    [4.45][4.45:88]()
    #[clap(setting = AppSettings::Hidden)]
    [4.45]
    [4.85077]
    #[clap(hide = true)]
  • replacement in pijul/src/commands/key.rs at line 4
    [4.2599][2.917:935]()
    use clap::Parser;
    [4.2599]
    [4.2637]
    use clap::{CommandFactory, Parser};
  • replacement in pijul/src/commands/key.rs at line 129
    [3.710][3.710:804]()
    <Self as clap::IntoApp>::into_app().write_long_help(&mut std::io::stdout())?;
    [3.710]
    [3.804]
    Self::command().write_long_help(&mut std::io::stdout())?;
  • replacement in pijul/src/commands/file_operations.rs at line 5
    [4.647][2.1138:1171]()
    use clap::{ArgSettings, Parser};
    [4.647]
    [4.4127]
    use clap::Parser;
  • replacement in pijul/src/commands/file_operations.rs at line 13
    [4.33][4.33:91]()
    #[clap(setting = ArgSettings::Hidden, long = "salt")]
    [4.96]
    [4.91]
    #[clap(hide = true, long = "salt")]
  • replacement in pijul/src/commands/file_operations.rs at line 112
    [4.58][4.115:173]()
    #[clap(setting = ArgSettings::Hidden, long = "salt")]
    [4.58]
    [4.1301]
    #[clap(hide = true, long = "salt")]