Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change parameters in CLI to more common syntax with dashes #42

Closed
x87 opened this issue Aug 3, 2020 · 4 comments
Closed

Change parameters in CLI to more common syntax with dashes #42

x87 opened this issue Aug 3, 2020 · 4 comments
Labels
Milestone

Comments

@x87
Copy link
Collaborator

x87 commented Aug 3, 2020

--game to select the default mode for the given game

\sa => --game sa, -g sa
\vc => --game vc, -g vc
\gta3 => --game gta3, -g gta3
\lcs => --game lcs, -g lcs
\vcs => --game vcs, -g vcs
\sa_mobile => --mode sa_mobile, -g sa_mobile

--mode to select a mode by ID (each mode has an ID attribute previously known as shortcut)

\debug => --debug
\compile input_file_path [output_file_path] => --compile "input_file_path" ["output_file_path"]
\nosplash => --no-splash

new:

-x "games.xml path" #15

Also see #14

@x87 x87 added priority:p1 High Priority scope:IDE labels Aug 3, 2020
@x87
Copy link
Collaborator Author

x87 commented Aug 3, 2020

Old names will be kept for backward compatibility with third-party tools.

@x87 x87 added this to the Next milestone Aug 3, 2020
@wmysterio
Copy link

wmysterio commented Aug 3, 2020

Будут ли отдельные режимы для \SA и \SA SCR? Так и не понял можно ли использовать эти параметры отдельно от настроек games.xml. Это -x "games.xml path" решит проблему?

@x87
Copy link
Collaborator Author

x87 commented Aug 4, 2020

@wmysterio you should be able to switch to any edit mode defined in the games.xml using --mode.

@wmysterio
Copy link

Thanks for new syntax in CLI! I tested the Compiling and all completed successfully:

var mode = "sa"; // !!! lowercase (by default)
var params1 = $"--mode {mode} --no-splash --compile \"{inputTxtFile}\" \"{mainScmFile}\"";
var params2 = $"-m {mode} --no-splash -c \"{inputTxtFile}\" \"{mainScmFile}\"";
startSB( sannyExe, params1 ); // OK
startSB( sannyExe, params2 ); // OK

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants