Skip to content

Commit

Permalink
AppOptions: Extract filename for executable name (f3d-app#1412)
Browse files Browse the repository at this point in the history
  • Loading branch information
mwestphal authored Apr 28, 2024
1 parent 78367a3 commit e69b705
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/F3DOptionsParser.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class ConfigurationOptions
: Argc(argc)
, Argv(argv)
{
this->ExecutableName = argc > 0 && argv[0][0] ? argv[0] : "f3d";
this->ExecutableName = argc > 0 && argv[0][0] ? fs::path(argv[0]).filename().string() : "f3d";
}

void GetOptions(F3DAppOptions& appOptions, f3d::options& options,
Expand Down

0 comments on commit e69b705

Please sign in to comment.