-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
migrate command-line interface to clap 4
Now that clap was updated from 2 to 4, we need to also migrate update-ssh-keys from clap 2 to 4, to build with clap 4. * Rename Command to UssCommand to resolve naming conflicts. * Explicitly use clap::crate_version, as required in clap 4. * Replace help() with help_template() as well as rewritten templates. * Replace Arg::with_name with Arg::new. * Replace Arg::multiple with Arg::num_args. * Replace Arg::value_of with Arg::get_one. * Replace Arg::values_of with Arg::get_many. * Replace matches.is_present with matches.contains_id. * Remove deprecated takes_value(). * Change argument type of short() to char.
- Loading branch information
1 parent
860e7e6
commit ed6069f
Showing
1 changed file
with
64 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters