[yoshimi] Re: --state and -S not synonyms and trying to load non-existing state
- From: Rob Couto <dbtx11@xxxxxxxxx>
- To: yoshimi@xxxxxxxxxxxxx
- Date: Thu, 1 Nov 2018 01:49:45 -0400
Hi all,
On 10/31/18, Lorenzo Sutton <lorenzofsutton@xxxxxxxxx> wrote:
So according to the manual shouldn't -S and --state be synonyms?
We ran into this quite a while back-- it's a quirk of the command line
option parser argp. -S is the same, you just have to omit the space or
insert the =:
~ $ yoshimi -Sfoo.state
Yoshimi 1.5.8.1 is starting
Using /home/dbtx/foo.state
...
~ $ yoshimi -S=foo.state
Yoshimi 1.5.8.1 is starting
Using /home/dbtx/foo.state
...
~ $ yoshimi -S foo.state
Yoshimi 1.5.8.1 is starting
Invalid state file specified for restore
/home/dbtx/.config/yoshimi/yoshimi.state
...
~ $ yoshimi --state foo.state
Yoshimi 1.5.8.1 is starting
Invalid state file specified for restore
/home/dbtx/.config/yoshimi/yoshimi.state
...
~ $ yoshimi --state=foo.state
Yoshimi 1.5.8.1 is starting
Using /home/dbtx/foo.state
...
Yes it's somewhat unusual and yes the error message is less than
helpful. In my case, ~/.config/yoshimi/yoshimi.state doesn't exist, so
it is still correct... that's the one implied when you use -S or
--state by itself (i.e. followed by a space) which is the same as
saying "load the default state."
GL, HF
--
Rob
Yoshimi source code is available from either:
https://sourceforge.net/projects/yoshimi
Or:
https://github.com/Yoshimi/yoshimi
Our list archive is at:
https://www.freelists.org/archive/yoshimi
To post, email to yoshimi@xxxxxxxxxxxxx
Other related posts: