Added /version command line option
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@1002 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
5ce4113c60
commit
a607325d97
1 changed files with 6 additions and 0 deletions
|
@ -80,6 +80,12 @@ int main(int argc, char **argv)
|
|||
int tmpargpos=1;
|
||||
int no_logo=0;
|
||||
|
||||
if (argc > 1 && !lstrcmpi(argv[1], "/version"))
|
||||
{
|
||||
fprintf(g_output,NSIS_VERSION);
|
||||
fflush(g_output);
|
||||
return 0;
|
||||
}
|
||||
if (argc > 1 && argv[1][0]=='/' && (argv[1][1]=='v' || argv[1][1]=='V'))
|
||||
{
|
||||
tmpargpos++;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue