Commit 68fc2453 authored by Taylor Hanayik's avatar Taylor Hanayik
Browse files

do not show f or g in command unless differs from default

parent 85036f0f
......@@ -289,8 +289,8 @@ export default function Bet() {
'-m': false,
'-s': false,
'-n': false,
'-f': 0.5,
'-g': 0.0,
'-f': '0.5',
'-g': '0',
'-r': null,
'-c': null,
'-t': false,
......@@ -390,10 +390,10 @@ export default function Bet() {
let command = 'bet '
for (let [key, value] of Object.entries({...betOpts})) {
if (value !== null) {
if (value === false){
if (value === false || value === defaultBetOpts[key]){
continue
} else if (value === true) {
// if true the just pass the key to set boolean bet values
// if true then just pass the key to set boolean bet values
value = ''
}
command += `${(key=='input' || key=='output') ? '': key} ${(key=='input' || key=='output') ? shortenFileName(value) : value} `
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment