Skip to content

Commit

Permalink
update the -h
Browse files Browse the repository at this point in the history
update the -h for vlmcs/d/multi
  • Loading branch information
shiroinekotfs committed Jan 16, 2025
1 parent f333e66 commit 976043d
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 48 deletions.
83 changes: 39 additions & 44 deletions src/vlmcs.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,62 +131,57 @@ __noreturn static void clientUsage(const char* const programName)
//// VLMCS Introduction
"Volume Management Service - Client Emulator\n"
"Build Date: %s\n"
"\nUsage:\n"
"Usage: %s [Options] [<Host>:<port> | <domain|FQDN> ] [Advanced Options]\n\n"
"Advanced options:\n"
"Usage: %s [<Host>:<port> | <domain|FQDN>] [Advanced Options]\n\n"
"Basic Operation:\n"
" <port>:\t\tTCP port name of the KMS to use. Blank means leaving the default port 1688.\n"
" <host>:\t\tHost name of the KMS to use. Blank means leaving the default local hosting\n"
# ifndef NO_DNS
" <domain|FQDN>:\tTarget to the VLMCSD server with a Domain or FQDN\n"
# endif // NO_DNS
"\nAdvanced options:\n"
# ifndef NO_VERBOSE_LOG
" -v : Verbose logging\n"
" -v:\t\tVerbose logging\n"
# endif
" -l : <app>\n"
" -4 : Force KMS V4 protocol\n"
" -5 : Force KMS V5 protocol\n"
" -6 : Force KMS V6 protocol\n"
" -l:\t\tUsing available Application ID, which can be shown in \"%s -x\"\n"
" -4:\t\tForce KMS V4 protocol\n"
" -5:\t\tForce KMS V5 protocol\n"
" -6:\t\tForce KMS V6 protocol\n"
# ifndef USE_MSRPC
" -i : Use IP protocol (4 or 6)\n"
" -i:\t\tUse IP protocol (4 or 6)\n"
# endif // USE_MSRPC
# ifndef NO_EXTERNAL_DATA
" -j : Load external KMS data file\n"
" -j:\t\tLoad external KMS data file\n"
# endif // NO_EXTERNAL_DATA
" -e : Show some valid examples\n"
" -x : Show valid Apps\n"
" -d : no DNS names, use NetBIOS names (no effect if -w is used)\n"
" -V : show version information and exit\n\n"

"Advanced options:\n\n"

" -a : Use custom Application GUID\n"
" -s : Use custom Activation Configuration GUID\n"
" -k : Use custom KMS GUID\n"
" -c : Use custom Client GUID. Default: Use random\n"
" -o : Use custom previous Client GUID. Default: ZeroGUID\n"
" -K : Use a specific (possibly invalid) protocol version\n"
" -w : Use custom workstation name. Default: Use random\n"
" -r : Fake required clients\n"
" -n : Fixed # of requests (Default: Enough to charge)\n"
" -m : Pretend to be a virtual machine\n"
" -G : Get ePID/HwId data and write to <file>. Can't be used with -l, -4, -5, -6, -a, -s, -k, -r and -n\n"
" -e:\t\tShow some valid examples\n"
" -x:\t\tShow valid Apps\n"
" -d:\t\tNo DNS names, use NetBIOS names (no effect if -w is used)\n"
" -V:\t\tShow version information and exit\n"
" -a:\t\tUse custom Application GUID\n"
" -s:\t\tUse custom Activation Configuration GUID\n"
" -k:\t\tUse custom KMS GUID\n"
" -c:\t\tUse custom Client GUID. Default: Use random\n"
" -o:\t\tUse custom previous Client GUID. Default: ZeroGUID\n"
" -K:\t\tUse a specific (possibly invalid) protocol version\n"
" -w:\t\tUse custom workstation name. Default: Use random\n"
" -r:\t\tFake required clients\n"
" -n:\t\tFixed # of requests (Default: Enough to charge)\n"
" -m:\t\tPretend to be a virtual machine\n"
" -G:\t\tGet ePID/HwId data and write to <file>. Can't be used with -l, -4, -5, -6, -a, -s, -k, -r and -n\n"
# ifndef USE_MSRPC
" -T : Use a new TCP connection for each request.\n"
" -N : <0|1> disable or enable NDR64. Default: 1\n"
" -B : <0|1> disable or enable RPC bind time feature negotiation. Default: 1\n"
" -T:\t\tUse a new TCP connection for each request.\n"
" -N:\t\t<0|1> disable or enable NDR64. Default: 1\n"
" -B:\t\t<0|1> disable or enable RPC bind time feature negotiation. Default: 1\n"
# endif // USE_MSRPC
" -t : Use specific license status (0 <= T <= 6)\n"
" -g : Use a specific binding expiration time in minutes. Default 43200\n"
" -t:\t\tUse specific license status (0 <= T <= 6)\n"
" -g:\t\tUse a specific binding expiration time in minutes. Default 43200\n"
# ifndef NO_DNS
" -P : Ignore priority and weight in DNS SRV records\n"
" -P:\t\tIgnore priority and weight in DNS SRV records\n"
# endif // NO_DNS
# ifndef USE_MSRPC
" -p : Don't use multiplexed RPC bind\n"
" -p:\t\tDon't use multiplexed RPC bind\n"
# endif // USE_MSRPC
"\n"

"<port> : \tTCP port name of the KMS to use. Blank means leaving the default port 1688.\n"
"<host> : \thost name of the KMS to use. Blank means leaving the default local hosting\n"
# ifndef NO_DNS
"<domain|FQDN> :\t find KMS server in <domain> via DNS\n"
# endif // NO_DNS
"<app>:\t\t(Type %s -x to see a list of valid apps)\n\n",
Version, programName, programName
"\n",
Version, programName, programName, programName
);
exit(VLMCSD_EINVAL);
}
Expand Down
1 change: 0 additions & 1 deletion src/vlmcsd.c
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,6 @@ static __noreturn void usage()
" -V\t\t\tDisplay version information and exit\n"
# endif // NO_VERSION_INFORMATION
,Version, global_argv[0]);

exit(VLMCSD_EINVAL);
}
#endif // HELP
Expand Down
10 changes: 7 additions & 3 deletions src/vlmcsdmulti.c
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,14 @@ int main(int argc, CARGV argv)
}

errorout(
"vlmcsdmulti %s\n\n"
"Volume Management Service - Multi-binary\n"
"Build Date: %s\n\n"
"Usage:\n"
"\t%s vlmcsd [<vlmcsd command line>]\n"
"\t%s vlmcs [<vlmcs command line>]\n\n",
"\t%s vlmcs [vlmcsd command]\n"
"\t%s vlmcsd [vlmcs command]\n\n"
"HELP:\n"
"\tFor each VLMCSD sub-program, please use \"-h\" at each command"
"\n",
Version, *argv, *argv
);

Expand Down

0 comments on commit 976043d

Please sign in to comment.