pub struct Args {Show 13 fields
pub input: Option<PathBuf>,
pub output: Option<PathBuf>,
pub config: Option<PathBuf>,
pub method: Option<Method>,
pub url_prefix: Option<String>,
pub format: Option<Format>,
pub combined: bool,
pub metadata: Option<PathBuf>,
pub watch: bool,
pub watch_throttle: u64,
pub verbose: u8,
pub input_files: Vec<PathBuf>,
pub metadata_version: MetadataVersion,
}
Expand description
The definition of program arguments.
Args
has a higher priority than FileConfig
.
If no value is specified for a configuration item in either Args
or FileConfig
, the default value is used.
Fields§
§input: Option<PathBuf>
(deprecated) input file path. if not specified, use stdin.
output: Option<PathBuf>
output file prefix. if both of [INPUT_FILES]
and --output
are not specified, use stdout.
config: Option<PathBuf>
config file path. if --config
option is specified and the configuration file fails to load, this program will exit with an error for security reasons.
method: Option<Method>
HTTP Method: "get"
| "post"
url_prefix: Option<String>
Server’s URL Prefix. default: "http://www.plantuml.com/plantuml/"
. example: "http://localhost:8080/"
.
format: Option<Format>
output format: "svg"
| "png"
| "txt"
combined: bool
output pre-proccessed data has .puml
extension
metadata: Option<PathBuf>
output path for metadata
watch: bool
watch over input files
watch_throttle: u64
watch throttle msec
verbose: u8
increase log level: -v
-> info, -vv
-> debug.
if the PSCR_LOG
environment variable is specified, this -v
option will ignore.
related: init_logger
input_files: Vec<PathBuf>
input file paths. if not specified, use stdin.
metadata_version: MetadataVersion
The version of metadata
Implementations§
Trait Implementations§
Source§impl Args for Args
impl Args for Args
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command
so it can instantiate self
via
FromArgMatches::update_from_arg_matches_mut
Read moreSource§impl CommandFactory for Args
impl CommandFactory for Args
Source§impl FromArgMatches for Args
impl FromArgMatches for Args
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches
to self
.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches
to self
.Source§impl Parser for Args
impl Parser for Args
Source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Source§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Auto Trait Implementations§
impl Freeze for Args
impl RefUnwindSafe for Args
impl Send for Args
impl Sync for Args
impl Unpin for Args
impl UnwindSafe for Args
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more