Skip to content

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

Closed

Description

@x87

--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

Activity

  1. x87 commented on Aug 3, 2020

    @x87
    CollaboratorAuthor

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

  2. added this to the Next milestone on Aug 3, 2020
  3. wmysterio commented on Aug 3, 2020

    @wmysterio

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

  4. x87 commented on Aug 4, 2020

    @x87
    CollaboratorAuthor

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

  5. wmysterio commented on Aug 18, 2020

    @wmysterio

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions