Skip to content

Commit 7a43762

Browse files
authored
Merge pull request #16 from GRAPHISOFT/gs-update-readme
Update README
2 parents 39de4b7 + b4dd2e9 commit 7a43762

File tree

3 files changed

+60
-3
lines changed

3 files changed

+60
-3
lines changed

README.md

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,55 @@ These execution times are expected to scale as expected with larger depots (mill
8484

8585
--user [Required]
8686
Specify which P4USER to use. Please ensure that the user is logged in.
87+
88+
--config [Optional, Default is empty]
89+
Path to a file that can contain additional command line arguments.
90+
91+
--exclude [Optional, Default is empty]
92+
A regex used to exclude files from the conversion. Can be specified more than once.
93+
Examples:
94+
Exclude all files in Tools/Development, except AModule.ini and files in AModule, AModuleTest: --exclude "//Tools/Development/(?!AModule/.*|AModuleTest/.*|AModule\.ini).*"
95+
Exclude all .pyc files: --exclude ".*\.pyc"
96+
Exclude a specific file: --exclude "//Tools/Development/BModule/OpenCppCoverageSetup-x64-0.9.9.0.exe"
97+
98+
--excludeLogPath [Optional, Default is empty string]
99+
Path to a file where the excluded files will be logged. If not provided, logging to file will not occur.
100+
101+
--lfsSpec [Optional, Default is empty]
102+
Path spec for files to be handled by Git LFS. Can be specified more than once.
103+
104+
--lfsServerUrl [Optional, Default is empty string]
105+
URL of the Git LFS server to use for uploading files with basic transfer.
106+
107+
--lfsUsername [Optional, Default is empty string]
108+
Git LFS username for basic access authentication.
109+
110+
--lfsPassword [Optional, Default is empty string]
111+
Git LFS password for basic access authentication.
112+
113+
--lfsToken [Optional, Default is empty string]
114+
Git LFS token for authentication.
115+
116+
--lfsAPI [Optional, Default is lfs]
117+
Specify the type of the used LFS server API. The types currently supported are 'lfs' (the default) and 's3'.
118+
119+
--lfsS3Bucket [Optional, Default is empty string]
120+
Specify the name of the S3 bucket to use for LFS storage.
121+
122+
--lfsS3Repository [Optional, Default is empty string]
123+
Specify the name of the repository used to store LFS files in S3 bucket.
124+
125+
--overrideToBinary [Optional, Default is empty]
126+
Path spec for files to be handled as binary, even when their P4 type is something else.
127+
Normally this results in them being ignored instead of committed.
128+
In includeBinaries+LFS mode, the LFS pathspecs control where to commit what;
129+
in that case this does nothing.Can be specified more than once.
130+
131+
--overrideToText [Optional, Default is empty]
132+
Path spec for files to be handled as text, even when their P4 type is binary or something else.
133+
Normally this results in them being committed to the Git repo instead of ignored.
134+
In includeBinaries+LFS mode, the LFS pathspecs control where to commit what;
135+
in that case this only serves to silence a warning.Can be specified more than once.
87136
```
88137
89138
## Notes On Branches

p4-fusion/main.cc

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,12 @@ int Main(int argc, char** argv)
6262
Arguments::GetSingleton()->OptionalParameter("--includeBinaries", "false", "Do not discard binary files while downloading changelists.");
6363
Arguments::GetSingleton()->OptionalParameter("--flushRate", "1000", "Rate at which profiling data is flushed on the disk.");
6464
Arguments::GetSingleton()->OptionalParameter("--noColor", "false", "Disable colored output.");
65-
Arguments::GetSingleton()->OptionalParameterList("--exclude", "A regex used to exclude files from the conversion. Can be specified more than once.");
66-
Arguments::GetSingleton()->OptionalParameter("--excludeLogPath", "", "Path to a file where the excluded files will be logged.");
65+
Arguments::GetSingleton()->OptionalParameterList("--exclude", "A regex used to exclude files from the conversion. Can be specified more than once.\n"
66+
"\tExamples:\n"
67+
"\t\tExclude all files in Tools/Development, except AModule.ini and files in AModule, AModuleTest: --exclude \"//Tools/Development/(?!AModule/.*|AModuleTest/.*|AModule\\.ini).*\"\n"
68+
"\t\tExclude all .pyc files: --exclude \".*\\.pyc\"\n"
69+
"\t\tExclude a specific file: --exclude \"//Tools/Development/BModule/OpenCppCoverageSetup-x64-0.9.9.0.exe\"\n");
70+
Arguments::GetSingleton()->OptionalParameter("--excludeLogPath", "", "Path to a file where the excluded files will be logged. If not provided, logging to file will not occur.");
6771
Arguments::GetSingleton()->OptionalParameter("--streamMappings", "false", "Use Mappings defined by Perforce Stream Spec for a given stream");
6872
Arguments::GetSingleton()->OptionalParameterList("--lfsSpec", "Path spec for files to be handled by Git LFS. Can be specified more than once.");
6973
Arguments::GetSingleton()->OptionalParameter("--lfsServerUrl", "", "URL of the Git LFS server to use for uploading files with basic transfer.");

p4-fusion/utils/arguments.cc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,8 +252,12 @@ std::string Arguments::Help()
252252
}
253253
else
254254
{
255-
text += "\033[93m[Optional, Default is " + (paramData.valueList.empty() ? "empty" : paramData.valueList.back()) + "]\033[0m";
255+
//clang-format off
256+
text += "\033[93m[Optional, Default is " + (paramData.valueList.empty() ? "empty" : paramData.valueList.back().empty() ? "empty string"
257+
: paramData.valueList.back())
258+
+ "]\033[0m";
256259
}
260+
//clang-format on
257261
text += "\n " + paramData.helpText + "\n\n";
258262
}
259263

0 commit comments

Comments
 (0)