2023-12-01 17:32:19 +00:00
|
|
|
// Copyright 2014 Google LLC. All rights reserved.
|
2014-10-13 22:06:48 +00:00
|
|
|
//
|
|
|
|
// Use of this source code is governed by a BSD-style
|
|
|
|
// license that can be found in the LICENSE file or at
|
|
|
|
// https://developers.google.com/open-source/licenses/bsd
|
|
|
|
//
|
|
|
|
// Flag validation help functions.
|
|
|
|
|
2023-12-01 17:32:19 +00:00
|
|
|
#include <packager/app/validate_flag.h>
|
2014-10-13 22:06:48 +00:00
|
|
|
|
2023-12-01 17:32:19 +00:00
|
|
|
#include <cstdio>
|
2014-10-13 22:06:48 +00:00
|
|
|
|
2016-05-20 21:19:33 +00:00
|
|
|
namespace shaka {
|
2014-10-13 22:06:48 +00:00
|
|
|
|
|
|
|
void PrintError(const std::string& error_message) {
|
|
|
|
fprintf(stderr, "ERROR: %s\n", error_message.c_str());
|
|
|
|
}
|
|
|
|
|
2017-09-20 22:49:00 +00:00
|
|
|
void PrintWarning(const std::string& warning_message) {
|
|
|
|
fprintf(stderr, "WARNING: %s\n", warning_message.c_str());
|
|
|
|
}
|
|
|
|
|
2016-05-20 21:19:33 +00:00
|
|
|
} // namespace shaka
|