[mlpack] 17/35: Correct warning for no output.
Barak A. Pearlmutter
barak+git at pearlmutter.net
Thu Sep 15 23:29:40 UTC 2016
This is an automated email from the git hooks/post-receive script.
bap pushed a commit to branch master
in repository mlpack.
commit 02d15d1874497b272e07f82bbed6e7a948aa1f15
Author: Ryan Curtin <ryan at ratml.org>
Date: Wed Jul 13 16:04:56 2016 -0400
Correct warning for no output.
---
src/mlpack/methods/hmm/hmm_generate_main.cpp | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/mlpack/methods/hmm/hmm_generate_main.cpp b/src/mlpack/methods/hmm/hmm_generate_main.cpp
index 860848d..6687f46 100644
--- a/src/mlpack/methods/hmm/hmm_generate_main.cpp
+++ b/src/mlpack/methods/hmm/hmm_generate_main.cpp
@@ -83,9 +83,9 @@ int main(int argc, char** argv)
// Parse command line options.
CLI::ParseCommandLine(argc, argv);
- if (CLI::HasParam("output_file"))
- Log::Warn << "--output_file (-o) is not specified; no results will be "
- << "saved!" << endl;
+ if (!CLI::HasParam("output_file") && !CLI::HasParam("state_file"))
+ Log::Warn << "Neither --output_file nor --state_file are specified; no "
+ << "output will be saved!" << endl;
// Set random seed.
if (CLI::GetParam<int>("seed") != 0)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/mlpack.git
More information about the debian-science-commits
mailing list