[Gambas-bugtracker] Bug #1676: gb.Args.Get does not return string when LongName is provided

bugtracker at gambaswiki.org bugtracker at gambaswiki.org
Wed Nov 6 03:37:15 CET 2019


http://gambaswiki.org/bugtracker/edit?object=BUG.1676&from=L21haW4-

James JORDAN reported a new bug.

Summary
-------

gb.Args.Get does not return string when LongName is provided

Type             : Bug
Priority         : Medium
Gambas version   : 3.14
Product          : Language


Description
-----------

The gb.Args component does not return provided string when using a "LongName"

Example:


==========================================
Public Sub Main()

Args.Begin()
stTitle = Args.Get("n", "name", "Dialog title to replace deafult")
Args.End()

Print "The provided title is: " & stTitle

End

==========================================

lixce-dialog -n "Hello LiXCE"

Prints: "The provided title is: Hello LiXCE"   'the provided string is assigned

lixce-dialog --name "Hello LiXCE"

Prints: "The provided title is: "   'the provided string IS NOT assigned
============================================

I have looked at the source code for gb.Args but cannot find the issue.


System information
------------------

Arch Linux
Gambas 3.14.1
components: gb, gb.args, gb.form, gb.image. gb.qt5




More information about the Bugtracker mailing list