use super::NnsCommonOptions;
use crate::{cli::clap::required_string, nns::leaf::commands::INPUT_ARG};
use clap::ArgMatches;
#[derive(Clone, Debug, Eq, PartialEq)]
pub(in crate::nns) struct NnsLeafInfoOptions {
pub(in crate::nns) input: String,
pub(in crate::nns) common: NnsCommonOptions,
}
impl NnsLeafInfoOptions {
pub(in crate::nns) fn from_matches(matches: &ArgMatches, network: &str) -> Self {
let common = NnsCommonOptions::from_matches(matches, network);
Self {
input: required_string(matches, INPUT_ARG),
common,
}
}
}