diff options
author | Homu <homu@barosl.com> | 2016-01-07 03:57:54 +0900 |
---|---|---|
committer | Homu <homu@barosl.com> | 2016-01-07 03:57:54 +0900 |
commit | 9662678b30d210500f4620a0ccc8330b8c97b25e (patch) | |
tree | 5fbde135b244a97e4b75e650ad49fb8affbfd467 /src/cli.rs | |
parent | 19ef1dd25a1ff5fd4643142b8270e0ae12c9bcce (diff) | |
parent | 51870b63f2afad866551010d74a0b0e1758a5956 (diff) |
Auto merge of #66 - matthiasbeyer:report-success, r=matthiasbeyer
Report success
Report success (as simple "Ok"/"Error" string) to the user, if the user wants that.
Diffstat (limited to 'src/cli.rs')
-rw-r--r-- | src/cli.rs | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -43,6 +43,13 @@ impl<'a> CliConfig<'a> { } /** + * Check whether the CLI says we should run with reporting + */ + pub fn report_exit(&self) -> bool { + self.cli_matches.is_present("report") + } + + /** * Get the runtime path the CLI configured */ pub fn get_rtp(&self) -> Option<String> { |