-
Notifications
You must be signed in to change notification settings - Fork 54
Palette cli #344
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Palette cli #344
Conversation
| 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", |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-pname and -palette-name?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, for example that 😉
|
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. |
-palor-palette-pfileor-palette-filePaletteState.SetFallbackIndex()overPaletteState.SetIndex()to specify a fallback index if the default is not specified (implementation would have been more invasive viaPaletteStateso it is done through the globalBasePalettes)