Fix up clap changes

This commit is contained in:
Olivier 'reivilibre' 2022-05-28 22:24:47 +01:00
parent f9c0d814c2
commit f4debbc9fe
1 changed files with 2 additions and 2 deletions

View File

@ -18,9 +18,9 @@ along with Yama. If not, see <https://www.gnu.org/licenses/>.
use std::path::{Path, PathBuf}; use std::path::{Path, PathBuf};
use anyhow::{bail, Context}; use anyhow::{bail, Context};
use clap::{crate_authors, crate_description, crate_version, Parser};
use log::info; use log::info;
use clap::Parser;
use env_logger::Env; use env_logger::Env;
use std::sync::Arc; use std::sync::Arc;
use yama::commands::{fully_integrate_pointer_node, load_pile_descriptor, open_pile}; use yama::commands::{fully_integrate_pointer_node, load_pile_descriptor, open_pile};
@ -32,7 +32,7 @@ use yama::pile::{Pile, PileDescriptor, RawPile};
use yama::{commands, debug}; use yama::{commands, debug};
#[derive(Parser)] #[derive(Parser)]
#[clap(version = crate_version!(), author = crate_authors!(), about = crate_description!())] #[clap(version = env!("CARGO_PKG_VERSION"), author = env!("CARGO_PKG_AUTHORS"), about = env!("CARGO_PKG_DESCRIPTION"))]
struct Opts { struct Opts {
/// Chooses a different pile to be the working pile. /// Chooses a different pile to be the working pile.
/// If specified, must be the name of a remote in yama.toml. /// If specified, must be the name of a remote in yama.toml.