Skip to content

[backport] gui: port command line parsing to stdlib argparse#777

Open
vassilit wants to merge 1 commit into
masterfrom
hotfix/glib_option_removal
Open

[backport] gui: port command line parsing to stdlib argparse#777
vassilit wants to merge 1 commit into
masterfrom
hotfix/glib_option_removal

Conversation

@vassilit

Copy link
Copy Markdown
Collaborator

to make 2.10 branch works on new distributions that ship ppygobject >= 3.56

pygobject 3.56 removed the GLib.option module, which was
a wrapper for Python optparse.Their MR #273 suggests to
use OptionContext, but they removed it also (MR #499)!

- migrated to Python's standard library's argparse.
- unknown options now print usage and exit 2 instead of logging and
  exiting 0.
- fixed -V --less-verbose (used to do the opposite)
- warn about ignored positional arguments
  (was always permitted and ignored)

(cherry picked from commit 9739a1a)
@vassilit vassilit added the hotfix hotfix to be merged on master label Jul 18, 2026
@vassilit vassilit linked an issue Jul 21, 2026 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

hotfix hotfix to be merged on master

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Shredder GUI crashes on startup: GLib has no attribute 'option'

1 participant