You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For scripting the use of stellarcli, the exit codes can be pretty important. I've noticed some variability though when commands are wrongly constructed:
stellarcli.exe satellite open-strea 5 => 0
stellarcli.exe satellit open-stream 5 => 1
stellarcli.exe blah open-stream 5 => 1
stellarcli.exe blah => 1
stellarcli.exe satellite blah => 0
stellarcli.exe satellite open-stream -blah => 1
I think it maybe depends on whether or not it drops through to a 'help' message. Perhaps need to differentiate between "help because the command wasn't understood" vs. "help because of the --help"?
Simple answer, of course, don't construct bad commands...! ;)
But when/if the command line options evolve over time, it would be good if a script can spot a flagrant mistake.
The text was updated successfully, but these errors were encountered:
For scripting the use of stellarcli, the exit codes can be pretty important. I've noticed some variability though when commands are wrongly constructed:
stellarcli.exe satellite open-strea 5 => 0
stellarcli.exe satellit open-stream 5 => 1
stellarcli.exe blah open-stream 5 => 1
stellarcli.exe blah => 1
stellarcli.exe satellite blah => 0
stellarcli.exe satellite open-stream -blah => 1
I think it maybe depends on whether or not it drops through to a 'help' message. Perhaps need to differentiate between "help because the command wasn't understood" vs. "help because of the --help"?
Simple answer, of course, don't construct bad commands...! ;)
But when/if the command line options evolve over time, it would be good if a script can spot a flagrant mistake.
The text was updated successfully, but these errors were encountered: