Skip to content

Commit 7835091

Browse files
authored
oiiotool: Add --experimental command line argument. (#5147)
Introducing this as a way to allow us to have experimental oiiotool features or behaviors that are enabled only if this flag is also present. It's a way of allowing features to be turned on for feedback before we're sure it's in a form that can be a permanent, supported feature, thus allowing it to undergo further change that is exempt from our usual rules about what may change in which versions. By forcing users to also employ this flag to enable the trial behavior, there's no way that they can inadvertently come to depend on a temporary behavior and be surprised if it changes later. Signed-off-by: Larry Gritz <lg@larrygritz.com>
1 parent 76451af commit 7835091

3 files changed

Lines changed: 9 additions & 0 deletions

File tree

src/doc/oiiotool.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -988,6 +988,12 @@ subimage according to its metadata::
988988

989989
oiiotool --oiioattrib debug 1 in.jpg -o out.jpg
990990

991+
.. option:: --experimental
992+
993+
Enables experimental features. Use at your own risk.
994+
995+
This was added in OIIO 3.1.13.
996+
991997

992998
.. _sec-oiiotool-control-flow-commands:
993999

src/oiiotool/oiiotool.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6664,6 +6664,8 @@ Oiiotool::getargs(int argc, char* argv[])
66646664
ap.arg("--nostderr", &ot.nostderr)
66656665
.help("Do not use stderr, output error messages to stdout")
66666666
.hidden();
6667+
ap.arg("--experimental", &ot.experimental)
6668+
.help("Allow experimental features");
66676669

66686670
ap.separator("Control flow and scripting:");
66696671
ap.arg("--set %s:NAME %s:VALUE")

src/oiiotool/oiiotool.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ class Oiiotool {
8383
bool nostderr = false; // If true, use stdout for errors
8484
bool noerrexit = false; // Don't exit on error
8585
bool create_dir = false;
86+
bool experimental = false; // Allow experimental features
8687
std::string dumpdata_C_name;
8788
std::string full_command_line;
8889
std::string printinfo_metamatch;

0 commit comments

Comments
 (0)