GNOME Bugzilla – Bug 336414
Switch from popt to GOption command line arguments management
Last modified: 2006-05-11 14:40:19 UTC
Please describe the problem: http://live.gnome.org/GnomeGoals/PoptGOption Steps to reproduce: Actual results: Expected results: Does this happen every time? Other information:
Created attachment 62257 [details] [review] Move from popt to GOption Works for me, but should be tested (needs GLib 2.11 because of bug 329548 )
Created attachment 62259 [details] [review] Reworked My previous patch was clearly uncomplete :( Don't know how it could work...
New output is as follows: [liberforce@liberforce gok]$ LC_ALL=C gok --help Usage: gok [OPTION...] The GNOME On-screen Keyboard Help Options: -?, --help Show help options --help-all Show all help options --help-gtk Show GTK+ Options --help-bonobo-activation Show Bonobo Activation options --help-gnome Show GNOME options --help-gnome-session Show session management options --help-gnome-ui Show GNOME GUI options Application Options: -a, --access-method=NAME Use the specified access method. NAME is a string and can be found in the various access method files (.xam) assigned to the "name" property of <gok:accessmethod> tag. Note this is not necessarily the same as the name of the .xam file. (See --list-accessmethods) -e, --editor Start the GOK keyboard editor --extras Use special, but possibly unstable, gok stuff --geometry=GEOMETRY Whenever --geometry is not used gok remembers its position between invocations and starts in the position that it had when it was last shutdown. When --geometry is used gok positions itself within the rectangular area of screen described by the given X11 geometry specification. When --geometry is used gok does not remember its position when it shuts down. This behaviour can be changed with the --remembergeometry flag which forces gok to remember its position when shutdown even when it was started with --geometry. -i, --input-device=DEVICENAME Use the specified input device -k, --keyboard=KEYBOARDNAME Start GOK with the specified keyboard. --list-accessmethods List the access methods that can be used as options to other arguments. --list-actions List the actions that can be used as options to other arguments. -l, --login GOK will be used to login --debugnameless GOK will display keys for nameless GUI. Useful for debugging. --remembergeometry Can be used with --geometry. Forces GOK to remember its position when shutdown even when it was started with --geometry. Please see the discussion under the --geometry flag for more information. --scan-action Start GOK and hook this action to scan operations. (See --list-actions) --select-action Start GOK and hook this action to select operations. (See --list-actions) -s, --settings Open the settings dialog box when GOK starts --valuator-sensitivity A multiplier to be applied to input device valuator events before processing --display=DISPLAY X display to use
Previous help was as follows: Note the text alignment is different, maybe that should be changed in GOption formatting. [liberforce@liberforce gok]$ LC_ALL=C ./gok --help Usage: gok [OPTION...] --load-modules=MODULE1,MODULE2,... Dynamic modules to load Help options -?, --help Show this help message --usage Display brief usage message Application options -a, --access-method=NAME Use the specified access method. NAME is a string and can be found in the various access method files (.xam) assigned to the "name" property of <gok:accessmethod> tag. Note this is not necessarily the same as the name of the .xam file. (See --list-accessmethods) -e, --editor Start the GOK keyboard editor --extras Use special, but possibly unstable, gok stuff --geometry=GEOMETRY Whenever --geometry is not used gok remembers its position between invocations and starts in the position that it had when it was last shutdown. When --geometry is used gok positions itself within the rectangular area of screen described by the given X11 geometry specification. When --geometry is used gok does not remember its position when it shuts down. This behaviour can be changed with the --remembergeometry flag which forces gok to remember its position when shutdown even when it was started with --geometry. -i, --input-device=DEVICENAME Use the specified input device -k, --keyboard=KEYBOARDNAME Start GOK with the specified keyboard. --list-accessmethods List the access methods that can be used as options to other arguments. --list-actions List the actions that can be used as options to other arguments. -l, --login GOK will be used to login --debugnameless GOK will display keys for nameless GUI. Useful for debugging. --remembergeometry Can be used with --geometry. Forces GOK to remember its position when shutdown even when it was started with --geometry. Please see the discussion under the --geometry flag for more information. --scan-action=STRING Start GOK and hook this action to scan operations. (See --list-actions) --select-action=STRING Start GOK and hook this action to select operations. (See --list-actions) -s, --settings Open the settings dialog box when GOK starts --valuator-sensitivity=DOUBLE A multiplier to be applied to input device valuator events before processing GTK+ --gdk-debug=FLAGS Gdk debugging flags to set --gdk-no-debug=FLAGS Gdk debugging flags to unset --display=DISPLAY X display to use --screen=SCREEN X screen to use --sync Make X calls synchronous --name=NAME Program name as used by the window manager --class=CLASS Program class as used by the window manager --gtk-debug=FLAGS Gtk+ debugging flags to set --gtk-no-debug=FLAGS Gtk+ debugging flags to unset --g-fatal-warnings Make all warnings fatal --gtk-module=MODULE Load an additional Gtk module Bonobo activation Support --oaf-ior-fd=FD File descriptor to print IOR on --oaf-activate-iid=IID IID to activate --oaf-private Prevent registering of server with OAF GNOME GConf Support GNOME Library --disable-sound Disable sound server usage --enable-sound Enable sound server usage --espeaker=HOSTNAME:PORT Host:port on which the sound server to use is running --version 2.14.0 Session management --sm-client-id=ID Specify session management ID --sm-config-prefix=PREFIX Specify prefix of saved configuration --sm-disable Disable connection to session manager GNOME GUI Library --disable-crash-dialog Disable Crash Dialog
May I have some feedback on this please ? Or have the patch applied ?
Thanks Luis. It looks okay to me, please commit.
Luis do you have commit privs?
Nope sorry, you'll have to do it yourself ;-)
Fixed in HEAD... thanks Luis!