Skip to content

Commit fb5d7bb

Browse files
committed
Unify command line arguments
Unify command line parameters for all modes and update the readme accordingly
1 parent 376036f commit fb5d7bb

File tree

2 files changed

+27
-25
lines changed

2 files changed

+27
-25
lines changed

MainClass.cs

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -63,15 +63,15 @@ private static void XicParametersParsing(string[] args)
6363
"h|help", "Prints out the options.",
6464
h => parameters.help = h != null
6565
},
66+
{
67+
"i=|input=", "The raw file input (Required). Specify this or an input directory -d",
68+
v => singleFile = v
69+
},
6670
{
6771
"d=|input_directory=",
6872
"The directory containing the raw files (Required). Specify this or an input file -i.",
6973
v => fileDirectory = v
7074
},
71-
{
72-
"i=|input=", "The raw file input (Required). Specify this or an input directory -d",
73-
v => singleFile = v
74-
},
7575
{
7676
"j=|json=",
7777
"The json input file (Required).",
@@ -82,16 +82,16 @@ private static void XicParametersParsing(string[] args)
8282
"Show a json input file example.",
8383
v => parameters.printJsonExample = v != null
8484
},
85-
{
86-
"o=|output_directory=",
87-
"The output directory. Specify this or an output file. Specifying neither writes to the input directory.",
88-
v => outputDirectory = v
89-
},
9085
{
9186
"b=|output=",
9287
"The output file. Specify this or an output directory. Specifying neither writes to the input directory.",
9388
v => outputFile = v
9489
},
90+
{
91+
"o=|output_directory=",
92+
"The output directory. Specify this or an output file. Specifying neither writes to the input directory.",
93+
v => outputDirectory = v
94+
},
9595
{
9696
"6|base64",
9797
"Encodes the content of the xic vectors as base 64 encoded string.",
@@ -338,7 +338,7 @@ private static void SpectrumQueryParametersParsing(string[] args)
338338
v => parameters.scans = v
339339
},
340340
{
341-
"b=|output_file",
341+
"b=|output=",
342342
"The output file. Specifying none writes the output file to the input file parent directory.",
343343
v => parameters.outputFile = v
344344
},
@@ -510,15 +510,15 @@ private static void RegularParametersParsing(string[] args)
510510
v => parseInput.RawDirectoryPath = v
511511
},
512512
{
513-
"o=|output=",
514-
"The output directory. Specify this or an output file -b. Specifying neither writes to the input directory.",
515-
v => parseInput.OutputDirectory = v
516-
},
517-
{
518-
"b=|output_file",
513+
"b=|output=",
519514
"The output file. Specify this or an output directory -o. Specifying neither writes to the input directory.",
520515
v => parseInput.OutputFile = v
521516
},
517+
{
518+
"o=|output_directory=",
519+
"The output directory. Specify this or an output file -b. Specifying neither writes to the input directory.",
520+
v => parseInput.OutputDirectory = v
521+
},
522522
{
523523
"s|stdout",
524524
"Write to standard output. Cannot be combined with file or directory output. Implies silent logging, i.e. logging level 0",

README.md

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,13 @@ optional subcommands are xic|query (use [subcommand] -h for more info]):
5959
-d, --input_directory=VALUE
6060
The directory containing the raw files (Required).
6161
Specify this or an input raw file -i.
62-
-o, --output=VALUE The output directory. Specify this or an output
63-
file -b. Specifying neither writes to the input
64-
directory.
65-
-b, --output_file=VALUE The output file. Specify this or an output
62+
-b, --output=VALUE The output file. Specify this or an output
6663
directory -o. Specifying neither writes to the
6764
input directory.
65+
-o, --output_directory=VALUE
66+
The output directory. Specify this or an output
67+
file -b. Specifying neither writes to the input
68+
directory.
6869
-s, --stdout Write to standard output. Cannot be combined with
6970
file or directory output. Implies silent logging,
7071
i.e. logging level 0
@@ -137,7 +138,7 @@ usage is:
137138
-h, --help Prints out the options.
138139
-i, --input=VALUE The raw file input (Required).
139140
-n, --scans=VALUE The scan numbers. e.g. "1-5, 20, 25-30"
140-
-b, --output_file=VALUE The output file. Specifying none writes the output
141+
-b, --output=VALUE The output file. Specifying none writes the output
141142
file to the input file parent directory.
142143
-p, --noPeakPicking Don't use the peak picking provided by the native
143144
Thermo library. By default peak picking is
@@ -169,12 +170,13 @@ ThermoRawFileParser.exe xic --help
169170
Specify this or an input file -i.
170171
-j, --json=VALUE The json input file (Required).
171172
-p, --print_example Show a json input file example.
172-
-o, --output=VALUE The output directory. Specify this or an output
173-
file. Specifying neither writes to the input
174-
directory.
175-
-b, --output_file=VALUE The output file. Specify this or an output
173+
-b, --output=VALUE The output file. Specify this or an output
176174
directory. Specifying neither writes to the
177175
input directory.
176+
-o, --output_directory=VALUE
177+
The output directory. Specify this or an output
178+
file. Specifying neither writes to the input
179+
directory.
178180
-6, --base64 Encodes the content of the xic vectors as base 64
179181
encoded string.
180182
-s, --stdout Pipes the output into standard output. Logging is

0 commit comments

Comments
 (0)