spring --help (split: feedback: (spring_94.1.1-354-ga4b114c))

spring --help (split: feedback: (spring_94.1.1-354-ga4b114c))

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

Post Reply
User avatar
Jools
XTA Developer
Posts: 2816
Joined: 23 Feb 2009, 16:29

spring --help (split: feedback: (spring_94.1.1-354-ga4b114c))

Post by Jools »

hoijui wrote:

Code: Select all

$ spring --help
---
this is available since about 2 years.[/quote]
[img]http://img819.imageshack.us/img819/1750/springd.png[/img]

It doesn't work.
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: feedback: (spring_94.1.1-354-ga4b114c)

Post by hoijui »

that is just win fail.
spring shows stuff, but windows does not show it.

you can do something like this:

Code: Select all

$ spring.exe --help > z.txt
then open the newly created file z.txt in a text editor.

edit:
you can also start spring.exe without arguments, and in the menu, choose "Edit Settings", to browse the list of config keys.
User avatar
Jools
XTA Developer
Posts: 2816
Joined: 23 Feb 2009, 16:29

Re: feedback: (spring_94.1.1-354-ga4b114c)

Post by Jools »

hoijui wrote: you can do something like this:

Code: Select all

$ spring.exe --help > z.txt
then open the newly created file z.txt in a text editor.
Yeah, but it's cumbersome to do that for each time you want to get/pass information to spring. What's the reason? For windows the syntax is normally either:

Code: Select all

help cd
cd /?
That at least works, so why doesn't it work for spring?
abma
Spring Developer
Posts: 3798
Joined: 01 Jun 2009, 00:08

Re: spring --help (split: feedback: (spring_94.1.1-354-ga4b1

Post by abma »

spring is a win32 application, only console applications can easily print to the console.

this "problem" could be fixed by showing a messagebox.
User avatar
Jools
XTA Developer
Posts: 2816
Joined: 23 Feb 2009, 16:29

Re: spring --help (split: feedback: (spring_94.1.1-354-ga4b1

Post by Jools »

Yeah, but most windows users don't use windows that way anyway (it's in the name: windows).

One suggeestion though: why not rename script.txt to something like script.spring (or script.spr if you want 3 letter extensions), then you could choose to always open that filetype with spring.exe, which would be convenient.
abma
Spring Developer
Posts: 3798
Joined: 01 Jun 2009, 00:08

Re: spring --help (split: feedback: (spring_94.1.1-354-ga4b1

Post by abma »

Jools wrote:One suggeestion though: why not rename script.txt to something like script.spring (or script.spr if you want 3 letter extensions), then you could choose to always open that filetype with spring.exe, which would be convenient.
drawback is, that it is bound to one specific version of spring, but its still a small benefit.

edit: aah, looking into the code: it should already work. just rename script.txt to .spr and associate with spring.exe.
User avatar
Jools
XTA Developer
Posts: 2816
Joined: 23 Feb 2009, 16:29

Re: spring --help (split: feedback: (spring_94.1.1-354-ga4b1

Post by Jools »

abma wrote: edit: aah, looking into the code: it should already work. just rename script.txt to .spr and associate with spring.exe.
But isn't script.txt created automagically automatically by the engine? won't it create a file called script.txt anyway next time?
abma
Spring Developer
Posts: 3798
Joined: 01 Jun 2009, 00:08

Re: spring --help (split: feedback: (spring_94.1.1-354-ga4b1

Post by abma »

script.txt is created by lobbies.
Post Reply

Return to “Engine”