yad --form --field NUM gives error with negative integers
Yet Another Dialog
Brought to you by:
v1c0nt
Originally created by: faop...@gmail.com
What steps will reproduce the problem?
1.use --field NUM with negative integers
2.
3.
What is the expected output? What do you see instead?
What version of the product are you using? On what operating system?
0.14.2
Please provide any additional information below.
When yad --field NUM with negative integers YAD interpreters negative integer as an option
in my script returns this error.
Unable parse command line: Unknown option -220[!-600..600][!10]]
View and moderate all "tickets Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Tickets"
Originally posted by: ananasik
for specify negative values and other command-line argument begin with dash just separate parameters and additional arguments with two dashes. for example
yad --form --filed "Numeric:NUM" -- "-200!-600..600!10"
but there was a bug with setting negative value for numeric field (only value, not range or step), that fixed in [r388]
Related
Commit: [r388]
View and moderate all "tickets Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Tickets"
Originally posted by: faop...@gmail.com
Thank you. i ve tried with [r389]. And your example works but using dashes break other --field lines (and other yad arguments) after line with two dashes.
You must use two dashes only before latest argument. i use many --field and other yad arguments in my script.
This solution is useless for me. Is there any other solution or fix ? Sorry my bash knowledge is not so good. (an average scripter) Maybe i am wrong.
an example :
yad --form --field 'Numeric:NUM' -- '-200!-600..600!10' \ --field 'Shells:CB' '!bash!tcsh!zsh' \ --button='gtk-go-back:122' --button='gtk-save:123' \ --center --fixed
Related
Commit: [r389]
View and moderate all "tickets Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Tickets"
Originally posted by: ananasik
values for field have to be specified after arguments. so
yad --form --field 'Numeric:NUM' --field 'Shells:CB' \ --button='gtk-go-back:122' --button='gtk-save:123' \ --center --fixed -- '-200!-600..600!10' 'bash!tcsh!zsh'
must works as expected
View and moderate all "tickets Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Tickets"
Originally posted by: faop...@gmail.com
i ve tried and it works . thanks again.
View and moderate all "tickets Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Tickets"
Originally posted by: ananasik
(No comment was entered for this change.)
Status: Fixed
The solution "fixes" the problem of displaying a negative number, but you can't add anything to the form after that, for some reason. Example: where $random is negative
yad --form --field='Test.:NUM' -- "$random"'!-180..180!0.001!4' \ --button="Not Shown":2 \ --field="Also not shown":TXT
Last edit: Jim Daniels 2021-07-07
Using yad 7.3 (GTK+ 3.24.5) on Debian Linux