pub fn signer_from_path_with_config(
        &self,
        matches: &ArgMatches,
        wallet_manager: &mut Option<Arc<RemoteWalletManager>>,
        config: &SignerFromPathConfig,
    ) -> Result<Box<dyn Signer>, Box<dyn std::error::Error>> {
        signer_from_path_with_config(
            matches,
            self.path()?,
            &self.arg_name,
            wallet_manager,
            config,
        )
    }
/// Loads the default [Signer] from one of several possible sources.
///
/// The `path` is not strictly a file system path, but is interpreted as
/// various types of _signing source_, depending on its format, one of which
/// is a path to a keypair file. Some sources may require user interaction
/// in the course of calling this function.
///
/// This simply delegates to the [`signer_from_path_with_config`] free
/// function, passing it the `DefaultSigner`s `path` and `arg_name` fields
/// as the `path` and `keypair_name` arguments.
///
/// See the [`signer_from_path`] free function for full documentation of how
/// this function interprets its arguments.
///
/// # Examples
///
/// ```no_run
/// use clap::{App, Arg, value_t_or_exit};
/// use solana_clap_utils::keypair::{SignerFromPathConfig, DefaultSigner};
/// use solana_clap_utils::offline::OfflineArgs;
///
/// let clap_app = App::new("my-program")
///     // The argument we'll parse as a signer "path"
///     .arg(Arg::with_name("keypair")
///         .required(true)
///         .help("The default signer"))
///     .offline_args();
///
/// let clap_matches = clap_app.get_matches();
/// let keypair_str = value_t_or_exit!(clap_matches, "keypair", String);
/// let default_signer = DefaultSigner::new("keypair", &keypair_str);
/// let mut wallet_manager = None;
///
/// // Allow pubkey signers without accompanying signatures
/// let config = SignerFromPathConfig {
///     allow_null_signer: true,
/// };
///
/// let signer = default_signer.signer_from_path_with_config(
///     &clap_matches,
///     &mut wallet_manager,
///     &config,
/// )?;
/// # Ok::<(), Box<dyn std::error::Error>>(())
/// ```
Loads the default [Signer] from one of several possible sources.
The `path` is not strictly a file system path, but is interpreted as
various types of _signing source_, depending on its format, one of which
is a path to a keypair file. Some sources may require user interaction
in the course of calling this function.



See the [`signer_from_path`] free function for full documentation of how
this function interprets its arguments.
Loads the default [ Signer ] from one of several possible sources . The ` path ` is not strictly a file system path but is interpreted as various types of _signing source_ depending on its format one of which is a path to a keypair file . Some sources may require user interaction in the course of calling this function . See the [ ` signer_from_path ` ] free function for full documentation of how this function interprets its arguments .
pub fn signer_from_path_with_config(
        &self,
        matches: &ArgMatches,
        wallet_manager: &mut Option<Arc<RemoteWalletManager>>,
        config: &SignerFromPathConfig,
    ) -> Result<Box<dyn Signer>, Box<dyn std::error::Error>> {
        signer_from_path_with_config(
            matches,
            self.path()?,
            &self.arg_name,
            wallet_manager,
            config,
        )
    }
pub fn signer_from_path_with_config ( & self , matches : & ArgMatches , wallet_manager : & mut Option < Arc < RemoteWalletManager > > , config : & SignerFromPathConfig , ) -> Result < Box < dyn Signer > , Box < dyn std :: error :: Error > > { signer_from_path_with_config ( matches , self . path ( ) ? , & self . arg_name , wallet_manager , config , ) }
Loads the default [Signer] from one of several possible sources.
Loads the default [ Signer ] from one of several possible sources .
&self
matches
&ArgMatches
wallet_manager
&mut Option<Arc<RemoteWalletManager>>
config
&SignerFromPathConfig
examples
```no_run
use clap::{App, Arg, value_t_or_exit};
use solana_clap_utils::keypair::{SignerFromPathConfig, DefaultSigner};
use solana_clap_utils::offline::OfflineArgs.

let clap_app = App::new("my-program")
The argument we'll parse as a signer "path"
.arg(Arg::with_name("keypair")
.required(true)
.help("The default signer"))
.offline_args().



Allow pubkey signers without accompanying signatures
let config = SignerFromPathConfig {
allow_null_signer: true,
}.

let signer = default_signer.signer_from_path_with_config(
&clap_matches,
&mut wallet_manager,
&config,
)?.
` ` ` no_run use clap :: { App Arg value_t_or_exit } ; use solana_clap_utils :: keypair :: { SignerFromPathConfig DefaultSigner } ; use solana_clap_utils :: offline :: OfflineArgs . let clap_app = App :: new ( " my - program " ) The argument we ' ll parse as a signer " path " . arg ( Arg :: with_name ( " keypair " ) . required ( true ) . help ( " The default signer " )) . offline_args () . Allow pubkey signers without accompanying signatures let config = SignerFromPathConfig { allow_null_signer : true } . let signer = default_signer . signer_from_path_with_config ( &clap_matches &mut wallet_manager &config ) ? .
ok::<(), box<dyn std::error::error>>(())
None