Skip to content

Conversation

@justinlaughlin
Copy link
Contributor

  • Adds the option to specify a palette using CLI arg -pal or -palette
  • CLI arg for specifying extra palettes via file is now -pfile or -palette-file
  • Internally, use PaletteState.SetFallbackIndex() over PaletteState.SetIndex() to specify a fallback index if the default is not specified (implementation would have been more invasive via PaletteState so it is done through the global BasePalettes)

args.AddOption(&script_file, "-run", "--run-script",
"Run a GLVis script file.");
args.AddOption(&palette_file, "-pal", "--palettes",
args.AddOption(&palette_file, "-pfile", "--palette-file",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure about this one. Palettes with -pal were already in the release, so we should keep backward compatibility maybe.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this makes more sense but you're right it breaks compatibility. Do you have any suggestions?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

-pname and -palette-name?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, for example that 😉

@najlkin
Copy link
Contributor

najlkin commented Jun 4, 2025

How about script and stream commands. Could you add them too? 😉 If you branch this from #335 , it would be very easy. It makes sense especially with palette files, because it is not that easy to sort out what will be the index when loaded to GLVis.

@najlkin najlkin linked an issue Jun 5, 2025 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Please support color pallete command argument

3 participants