Add an option to print the colour table for the current scheme

This commit is contained in:
Lachlan Picking 2017-08-12 22:48:42 +10:00
parent 1be2939f25
commit b0d43f8067
2 changed files with 6 additions and 2 deletions

View file

@ -221,6 +221,10 @@ namespace ColorTool
{ {
switch (arg) switch (arg)
{ {
case "-c":
case "--current":
PrintTable();
return;
case "-q": case "-q":
case "--quiet": case "--quiet":
quiteMode = true; quiteMode = true;

View file

@ -147,11 +147,11 @@ Arguments:
If that fails, it will look for it as an .ini file color scheme. If that fails, it will look for it as an .ini file color scheme.
Options: Options:
-?, --help : Display this help message -?, --help : Display this help message
-c, --current : Print the color table for the currently applied scheme
-q, --quiet : Don't print the color table after applying -q, --quiet : Don't print the color table after applying
-d, --defaults : Apply the scheme to only the defaults in the registry -d, --defaults : Apply the scheme to only the defaults in the registry
-b, --both : Apply the scheme to both the current console and the defaults. -b, --both : Apply the scheme to both the current console and the defaults.
-v, --version : Display the version number -v, --version : Display the version number</value>
</value>
</data> </data>
<data name="WroteToDefaults" xml:space="preserve"> <data name="WroteToDefaults" xml:space="preserve">
<value>Wrote selected scheme to the defaults.</value> <value>Wrote selected scheme to the defaults.</value>