Skip to content
This repository was archived by the owner on Sep 29, 2023. It is now read-only.

Commit c62fe7d

Browse files
Lowercase command and option descriptions.
When displaying help on the command line, all command and option descriptions are now lowercase.
1 parent 75958f5 commit c62fe7d

File tree

4 files changed

+38
-34
lines changed

4 files changed

+38
-34
lines changed

changelog.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
# Changelog
22

3-
* Deleted './src/output/result-control.js'
4-
* It has been split into different files.
3+
**./src/common/sub-interface/**
4+
* When displaying help on the command line, all command and option descriptions are now lowercase.
5+
* This affects the files:
6+
* cmd-desc.js
7+
* option-desc.js

src/common/sub-interface/cmd-desc.js

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,24 @@ const mapAbsoluteDesc = writeMapDesc("an absolute node graph text file");
44
const mapGridDesc = writeMapDesc("a predefined binary grid text file");
55
const mapRelativeDesc = writeMapDesc("a relative node graph text file");
66
const mapImageDesc = writeMapDesc("an existing image file of a maze");
7-
const createImageConfigDesc = "Creates a configuration file that can be used when reading images.";
8-
const loadImageConfigDesc = "Reads and validates an existing image configuration file.";
9-
const gridToAbsoluteDesc = writeAbsoluteConversionDesc("Grid definition text");
10-
const imageToAbsoluteDesc = writeAbsoluteConversionDesc("Image");
7+
const createImageConfigDesc = "creates a configuration file that can be used when reading images.";
8+
const loadImageConfigDesc = "reads and validates an existing image configuration file.";
9+
const gridToAbsoluteDesc = writeAbsoluteConversionDesc("grid definition text");
10+
const imageToAbsoluteDesc = writeAbsoluteConversionDesc("image");
1111
const imageToGridDesc = writeImageToGridDesc();
12-
const absoluteToRelativeDesc = writeRelativeConversionDesc("Absolute definition text");
13-
const gridToRelativeDesc = writeRelativeConversionDesc("Grid definition text");
14-
const imageToRelativeDesc = writeRelativeConversionDesc("Image");
15-
const testExportDesc = "Used to test file output by exporting a hard-coded graph.";
16-
const versionDesc = "Displays current version number.";
12+
const absoluteToRelativeDesc = writeRelativeConversionDesc("absolute definition text");
13+
const gridToRelativeDesc = writeRelativeConversionDesc("grid definition text");
14+
const imageToRelativeDesc = writeRelativeConversionDesc("image");
15+
const testExportDesc = "used to test file output by exporting a hard-coded graph.";
16+
const versionDesc = "displays current version number.";
1717

1818

1919

2020
function writeMapDesc(fileDesc)
2121
{
2222
var writeRes = "";
2323

24-
writeRes += "Takes ";
24+
writeRes += "takes ";
2525
writeRes += fileDesc;
2626
writeRes += ", converts it into an interactive diagram, and performs a pathfinding algorithm.";
2727

@@ -33,9 +33,9 @@ function writeAbsoluteConversionDesc(inputDesc)
3333
{
3434
var writeRes = "";
3535

36-
writeRes += "Takes an existing ";
36+
writeRes += "takes an existing ";
3737
writeRes += inputDesc;
38-
writeRes += " file, parses it into a graph, and outputs an Absolute definition text file.";
38+
writeRes += " file, parses it into a graph, and outputs an absolute definition text file.";
3939

4040
return writeRes;
4141
}
@@ -45,9 +45,9 @@ function writeRelativeConversionDesc(inputDesc)
4545
{
4646
var writeRes = "";
4747

48-
writeRes += "Takes an existing ";
48+
writeRes += "takes an existing ";
4949
writeRes += inputDesc;
50-
writeRes += " file, parses it into a graph, and outputs a Relative definition text file.";
50+
writeRes += " file, parses it into a graph, and outputs a relative definition text file.";
5151

5252
return writeRes;
5353
}
@@ -56,7 +56,7 @@ function writeImageToGridDesc()
5656
{
5757
var writeRes = "";
5858

59-
writeRes += "Takes an existing image file, ";
59+
writeRes += "takes an existing image file, ";
6060
writeRes += "parses it into a grid, and ";
6161
writeRes += "outputs it as a definition text file.";
6262

src/common/sub-interface/option-desc.js

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
// Option description text.
22

3-
const outputFolderDesc = "Specifies the folder path where output result files will be written.";
3+
const outputFolderDesc = "specifies the folder path where output result files will be written.";
44
const ignoreTextParseDesc = writeIgnoreParseDesc("text");
55
const ignoreImageParseDesc = writeIgnoreParseDesc("image");
6-
const exportGraphDesc = "Indicates whether to export the resulting graph diagram.";
7-
const exportRawDesc = "Exports raw graph and path data to separate files.";
6+
const exportGraphDesc = "indicates whether to export the resulting graph diagram.";
7+
const exportRawDesc = "exports raw graph and path data to separate files.";
88
const loadImageConfigDesc = writeLoadSaveImageConfigDesc("file path of an existing", "loaded.");
99
const saveImageConfigDesc = writeLoadSaveImageConfigDesc("name of a saved", "saved.");
1010
const wallColourDesc = writeColourDesc("wall", "#000000");
1111
const floorColourDesc = writeColourDesc("floor", "#FFFFFF");
12-
const tolerancePercentDesc = "The percentage difference allowed when checking image pixel colours. (default: 0)";
13-
const tileSizeDesc = "The approximate size of a maze tile in pixels. (default: 10)";
14-
const imageOriginDescX = writeOriginDesc("X");
15-
const imageOriginDescY = writeOriginDesc("Y");
16-
const replaceExistingFileDesc = "Specifies whether existing files will be replaced.";
17-
const saveImageConvConfigDesc = "Specifies the path where the image configuration file will be saved. If this is blank, no file will be saved.";
12+
const tolerancePercentDesc = "the percentage difference allowed when checking image pixel colours. (default: 0)";
13+
const tileSizeDesc = "the approximate size of a maze tile in pixels. (default: 10)";
14+
const imageOriginDescX = writeOriginDesc("x");
15+
const imageOriginDescY = writeOriginDesc("y");
16+
const replaceExistingFileDesc = "specifies whether existing files will be replaced.";
17+
const saveImageConvConfigDesc = "specifies the path where the image configuration file will be saved. if this is blank, no file will be saved.";
1818

1919

2020

2121
function writeIgnoreParseDesc(typeDesc)
2222
{
23-
var writeRes = "Ignores or corrects non-fatal errors when parsing input " + typeDesc + " files.";
23+
var writeRes = "ignores or corrects non-fatal errors when parsing input " + typeDesc + " files.";
2424
return writeRes;
2525
}
2626

@@ -29,9 +29,9 @@ function writeLoadSaveImageConfigDesc(valueDesc, fileAction)
2929
{
3030
var writeRes = "";
3131

32-
writeRes += "Specifies the " + valueDesc;
32+
writeRes += "specifies the " + valueDesc;
3333
writeRes += " image configuration file. ";
34-
writeRes += " If this is blank, no file will be ";
34+
writeRes += " if this is blank, no file will be ";
3535
writeRes += fileAction;
3636

3737
return writeRes;
@@ -42,7 +42,7 @@ function writeColourDesc(pixelDesc, defaultHex)
4242
{
4343
var writeRes = "";
4444

45-
writeRes += "The hex colour of ";
45+
writeRes += "the hex colour of ";
4646
writeRes += pixelDesc;
4747
writeRes += " pixels in the target image. (default: ";
4848
writeRes += defaultHex;
@@ -54,7 +54,7 @@ function writeColourDesc(pixelDesc, defaultHex)
5454

5555
function writeOriginDesc(oPlane)
5656
{
57-
var writeRes = "The approximate " + oPlane + " location of the first tile. (default: 0)";
57+
var writeRes = "the approximate " + oPlane + " location of the first tile. (default: 0)";
5858
return writeRes;
5959
}
6060

summary.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
# Summary
22

3-
**Version:** 1.0.24
3+
**Version:** 1.0.25
44

55
**Date:** 2021-03-31
66

7-
**Title:** Result Control Delete
7+
**Title:** Lowercase command and option descriptions.
88

99
**Description:**
1010

11-
Deleted original 'result-control.js' file.
11+
When displaying help on the command line, all command and
12+
option descriptions are now lowercase.

0 commit comments

Comments
 (0)