Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Seitosh
Seitosh
Commits
1db30a67
Commit
1db30a67
authored
Oct 26, 2015
by
thomas.forbriger
Browse files
[FEATURE] (issue10): provide format specific usage text
Let lisousi provide format specific usage text from libdatrwxx.
parent
e67c7212
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/ts/lisousi/help_text.txt
View file @
1db30a67
...
...
@@ -11,7 +11,8 @@ infile input file
the format selected by "-type"
informational output:
-xhelp print detailed information regarding file formats
-xhelp[=type] print detailed information regarding file formats
if "type" is specified, just print text for file format "type"
-listexperimental
list experimental and non-operational options
-v be verbose
...
...
src/ts/lisousi/lisousi.cc
View file @
1db30a67
...
...
@@ -59,11 +59,12 @@
* reproduced by the current version
* - 12/05/2015 V1.12a provide updated documentation
* - 21/09/2015 V1.12b indicate fix by advancing version id
* - 26/10/2015 V1.12c provide format specific usage text
*
* ============================================================================
*/
#define LISOUSI_VERSION \
"LISOUSI V1.12
b
line source simulation"
"LISOUSI V1.12
c
line source simulation"
#include "lisousi.h"
#include "wnintegration.h"
...
...
@@ -91,7 +92,7 @@ int main(int iargc, char* argv[])
// 0: print help
{
"help"
,
arg_no
,
"-"
},
// 1: output file format
{
"xhelp"
,
arg_
no
,
"-
"
},
{
"xhelp"
,
arg_
opt
,
"all
"
},
// 2: generate debug output
{
"DEBUG"
,
arg_no
,
"-"
},
// 3: verbose mode
...
...
@@ -209,7 +210,14 @@ int main(int iargc, char* argv[])
cerr
<<
usage_text_version
<<
endl
;
cerr
<<
usage_text
<<
endl
;
cerr
<<
endl
;
datrw
::
online_help
(
cerr
);
if
(
cmdline
.
string_arg
(
1
)
==
"all"
)
{
datrw
::
online_help
(
cerr
);
}
else
{
datrw
::
online_help
(
cmdline
.
string_arg
(
1
),
cerr
);
}
exit
(
0
);
}
...
...
src/ts/lisousi/usage_text.txt
View file @
1db30a67
...
...
@@ -16,6 +16,6 @@ usage: lisousi [-v] [-o] [-type type] [-Type type]
[-spatialdistance]
outfile infile [t:T] [f:F] [infile [t:T] [f:F] ...]
or: lisousi --help|-h
or: lisousi --xhelp
or: lisousi --xhelp
[=type]
or: lisousi --listexperimental
# ----- END OF usage_text.txt -----
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment