Skip to content

Commit

Permalink
rename dry-run by no-config
Browse files Browse the repository at this point in the history
find . -name "*\.h" -exec sed -i 's/dry-run/no-config/g' {} \;
find . -name "*\.md" -exec sed -i 's/dry-run/no-config/g' {} \;
find . -name "*\.txt" -exec sed -i 's/DryRun/NoRender/g' {} \;
  • Loading branch information
t-h2o committed Nov 19, 2024
1 parent 2cc7664 commit 0cf02b2
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ A clear and concise description of what the bug is, a screenshot helps a lot.

**To Reproduce**
Steps to reproduce the behavior:
1. Open the file using `f3d --dry-run example.glb`
1. Open the file using `f3d --no-config example.glb`
2. step 2
3. step 3

Expand Down
2 changes: 1 addition & 1 deletion application/F3DOptionsTools.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ static inline const OptionsDict DefaultAppOptions = {
{ "output", "" },
{ "no-background", "false" },
{ "config", "" },
{ "dry-run", "false" },
{ "no-config", "false" },
{ "no-render", "false" },
{ "rendering-backend", "auto" },
{ "max-size", "-1.0" },
Expand Down
4 changes: 2 additions & 2 deletions application/testing/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1037,8 +1037,8 @@ endif()
f3d_test(NAME TestRenderingBackendInvalid DATA cow.vtp RENDERING_BACKEND invalid ARGS --verbose REGEXP "rendering-backend value is invalid, falling back to" NO_BASELINE)

# Test that f3d can try to read a system config file
add_test(NAME f3d::TestNoDryRun COMMAND $<TARGET_FILE:f3d> --no-render)
set_tests_properties(f3d::TestNoDryRun PROPERTIES TIMEOUT 4)
add_test(NAME f3d::TestNoNoRender COMMAND $<TARGET_FILE:f3d> --no-render)
set_tests_properties(f3d::TestNoNoRender PROPERTIES TIMEOUT 4)

# Test invalid CLI args
add_test(NAME f3d::TestInvalidCLIArgs COMMAND $<TARGET_FILE:f3d> --up)
Expand Down
2 changes: 1 addition & 1 deletion doc/user/CONFIGURATION_FILE.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ F3D provides a default config directory for generic usage (`config.d`) and a thu
You can edit the file contained in these directory or add your own in specific directories (see below).

The following options <b> cannot </b> be set via config file:
`help`, `version`, `readers-list`, `config`, `dry-run` and `input`.
`help`, `version`, `readers-list`, `config`, `no-config` and `input`.

The following options <b>are only taken on the first load</b>:
`no-render`, `output`, and all testing options.
Expand Down
2 changes: 1 addition & 1 deletion doc/user/OPTIONS.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Options|Default|Description
\-\-version||Show *version* information and exit. Ignore `--verbose`.
\-\-readers-list||List available *readers* and exit. Ignore `--verbose`.
\-\-config=\<config file path/name/stem\>|config|Specify the [configuration file](CONFIGURATION_FILE.md) to use. Supports absolute/relative path but also filename/filestem to search for in standard configuration file locations.
\-\-dry-run||Do not read any configuration file and consider only the command line options.
\-\-no-config||Do not read any configuration file and consider only the command line options.
\-\-no-render||Do not render anything and quit just after loading the first file, use with \-\-verbose to recover information about a file.
\-\-max-size=\<size in MiB\>|-1|Prevent F3D to load a file bigger than the provided size in Mib, negative value means unlimited, useful for thumbnails.
\-\-watch||Watch current file and automatically reload it whenever it is modified on disk.
Expand Down

0 comments on commit 0cf02b2

Please sign in to comment.