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
Allow multiple -o flags by introducing Preferences.output_dirs (replacing single output_dir). CLI parsing now appends each output path into output_dirs and validates at least one is provided. PEX backend writes generated .pex files to the first output dir and copies them to any additional dirs. Original backend now warns when multiple output dirs are used (only the first dir is used). Added a new warning message constant and adjusted error/message string formatting. Updated tests to use output_dirs and added test_multiple_output_dirs. CHANGELOG updated to mention the new feature.
Copy file name to clipboardExpand all lines: modules/papyrus/errors/errors.v
+13-12Lines changed: 13 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -35,19 +35,20 @@ pub:
35
35
reporter Reporter
36
36
}
37
37
38
-
pubconstmsg_invalid_output_path="Error: Invalid path specified for the -o flag. Please provide a valid directory path where compiled files should be saved.";
39
-
pubconstmsg_invalid_input_path="Error: Invalid path specified for the -i flag. Please provide a valid directory or file path containing the .psc scripts to compile.";
40
-
pubconstmsg_invalid_headers_path="Error: Invalid path specified for the -h flag. Please provide a valid directory path containing header/import .psc files.";
38
+
pubconstmsg_invalid_output_path="Error: Invalid path specified for the -o flag. Please provide a valid directory path where compiled files should be saved."
39
+
pubconstmsg_invalid_input_path="Error: Invalid path specified for the -i flag. Please provide a valid directory or file path containing the .psc scripts to compile."
40
+
pubconstmsg_invalid_headers_path="Error: Invalid path specified for the -h flag. Please provide a valid directory path containing header/import .psc files."
41
41
pubconstmsg_duplicate_input_flag="Error: Duplicate -i flag detected with the same path. Please ensure each -i flag points to a unique directory or file."
42
-
pubconstmsg_duplicate_output_flag="Error: The -o flag has already been specified. Please provide only one output directory.";
43
-
pubconstmsg_missing_input="Error: Missing mandatory -i flag. Please specify the directory or file containing .psc scripts to compile.";
44
-
pubconstmsg_missing_output="Error: Missing mandatory -o flag. Please specify the directory where compiled .pex files should be saved.";
42
+
pubconstmsg_duplicate_output_flag="Error: The -o flag has already been specified. Please provide only one output directory."
43
+
pubconstmsg_missing_input="Error: Missing mandatory -i flag. Please specify the directory or file containing .psc scripts to compile."
44
+
pubconstmsg_missing_output="Error: Missing mandatory -o flag. Please specify the directory where compiled .pex files should be saved."
45
+
pubconstmsg_warning_multiple_output_with_original="Warning: Using multiple output directories with -original flag is not fully supported. Files will only be compiled to the first directory."
45
46
//TODO
46
-
pubconstmsg_wrong_number_of_arguments="Error: Incorrect number of arguments for the command. Please refer to the documentation for the correct usage.";
47
+
pubconstmsg_wrong_number_of_arguments="Error: Incorrect number of arguments for the command. Please refer to the documentation for the correct usage."
47
48
//TODO
48
-
pubconstmsg_missing_or_incorrect_argument="Error: Missing or incorrect argument. Please check the syntax of your command.";
49
-
pubconstmsg_missing_or_incorrect_command="Error: Invalid command. Please use one of the following commands: compile, read, disassembly, create-dump, help.";
50
-
pubconstmsg_invalid_path_disassembly="Error: Invalid path specified for the disassembly command. Please provide a valid file path for the .pex file.";
51
-
pubconstmsg_invalid_path_read="Error: Invalid path specified for the read command. Please provide a valid file path for the .pex file.";
52
-
pubconstmsg_invalid_path_create_dump="Error: Invalid path specified for create-dump. Please provide a valid directory path containing .pex files.";
49
+
pubconstmsg_missing_or_incorrect_argument="Error: Missing or incorrect argument. Please check the syntax of your command."
50
+
pubconstmsg_missing_or_incorrect_command="Error: Invalid command. Please use one of the following commands: compile, read, disassembly, create-dump, help."
51
+
pubconstmsg_invalid_path_disassembly="Error: Invalid path specified for the disassembly command. Please provide a valid file path for the .pex file."
52
+
pubconstmsg_invalid_path_read="Error: Invalid path specified for the read command. Please provide a valid file path for the .pex file."
53
+
pubconstmsg_invalid_path_create_dump="Error: Invalid path specified for create-dump. Please provide a valid directory path containing .pex files."
0 commit comments