After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 336414 - Switch from popt to GOption command line arguments management
Switch from popt to GOption command line arguments management
Status: RESOLVED FIXED
Product: gok
Classification: Deprecated
Component: general
1.0.x
Other All
: Normal normal
: ---
Assigned To: David Bolter
David Bolter
Depends on:
Blocks:
 
 
Reported: 2006-03-29 00:10 UTC by Luis Menina
Modified: 2006-05-11 14:40 UTC
See Also:
GNOME target: ---
GNOME version: 2.13/2.14


Attachments
Move from popt to GOption (5.80 KB, patch)
2006-03-29 00:12 UTC, Luis Menina
none Details | Review
Reworked (6.54 KB, patch)
2006-03-29 00:37 UTC, Luis Menina
committed Details | Review

Description Luis Menina 2006-03-29 00:10:31 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:
Comment 1 Luis Menina 2006-03-29 00:12:43 UTC
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 )
Comment 2 Luis Menina 2006-03-29 00:37:56 UTC
Created attachment 62259 [details] [review]
Reworked

My previous patch was clearly uncomplete :(
Don't know how it could work...
Comment 3 Luis Menina 2006-03-29 00:40:29 UTC
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
Comment 4 Luis Menina 2006-03-29 00:43:29 UTC
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
Comment 5 Luis Menina 2006-04-10 11:57:24 UTC
May I have some feedback on this please ? Or have the patch applied ?
Comment 6 David Bolter 2006-04-10 14:15:41 UTC
Thanks Luis. It looks okay to me, please commit.
Comment 7 David Bolter 2006-05-10 19:42:36 UTC
Luis do you have commit privs?
Comment 8 Luis Menina 2006-05-10 22:43:11 UTC
Nope sorry, you'll have to do it yourself ;-)
Comment 9 David Bolter 2006-05-11 14:40:19 UTC
Fixed in HEAD... thanks Luis!