mirror of
https://github.com/dgis/xsddiagram.git
synced 2024-10-26 18:49:35 +03:00
Add the -no-gui option.
This commit is contained in:
parent
812fbb759f
commit
af7ce6ba4a
@ -37,6 +37,7 @@ namespace XSDDiagram
|
|||||||
public static string Username { get; private set; }
|
public static string Username { get; private set; }
|
||||||
public static string Password { get; private set; }
|
public static string Password { get; private set; }
|
||||||
public static IList<string> TextOutputFields { get; private set; }
|
public static IList<string> TextOutputFields { get; private set; }
|
||||||
|
public static bool NoGUI { get; private set; }
|
||||||
|
|
||||||
static Options()
|
static Options()
|
||||||
{
|
{
|
||||||
@ -51,6 +52,7 @@ namespace XSDDiagram
|
|||||||
ForceHugeImageGeneration = false;
|
ForceHugeImageGeneration = false;
|
||||||
RequestHelp = false;
|
RequestHelp = false;
|
||||||
TextOutputFields = new List<string>();
|
TextOutputFields = new List<string>();
|
||||||
|
NoGUI = false;
|
||||||
|
|
||||||
IsRunningOnMono = Type.GetType("Mono.Runtime") != null;
|
IsRunningOnMono = Type.GetType("Mono.Runtime") != null;
|
||||||
|
|
||||||
@ -155,6 +157,10 @@ namespace XSDDiagram
|
|||||||
TextOutputFields.Add(field.Trim());
|
TextOutputFields.Add(field.Trim());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if (string.Compare("-no-gui", argument, true) == 0)
|
||||||
|
{
|
||||||
|
NoGUI = true;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
InputFile = argument;
|
InputFile = argument;
|
||||||
}
|
}
|
||||||
|
@ -66,7 +66,8 @@ Usage: {1} [-o output.svg] [-os EXTENSION] [-r RootElement[@namespace]]* [-e N]
|
|||||||
-p PASSWORD
|
-p PASSWORD
|
||||||
specifies a password to authenticate when a xsd dependency
|
specifies a password to authenticate when a xsd dependency
|
||||||
(import or include) is a secured url.
|
(import or include) is a secured url.
|
||||||
|
-no-gui
|
||||||
|
prevents the graphical interface to be opened.
|
||||||
|
|
||||||
Example 1:
|
Example 1:
|
||||||
> XSDDiagramConsole.exe -o file.png -r TotoRoot -r TotoComplexType@http://mynamespace -e 3 -d -z 200 ./folder1/toto.xsd
|
> XSDDiagramConsole.exe -o file.png -r TotoRoot -r TotoComplexType@http://mynamespace -e 3 -d -z 200 ./folder1/toto.xsd
|
||||||
@ -103,7 +104,7 @@ Example 5:
|
|||||||
Thread.CurrentThread.CurrentCulture = CultureInfo.InvariantCulture;
|
Thread.CurrentThread.CurrentCulture = CultureInfo.InvariantCulture;
|
||||||
|
|
||||||
bool streamToOutput = !string.IsNullOrEmpty(Options.OutputFile) || Options.OutputOnStdOut;
|
bool streamToOutput = !string.IsNullOrEmpty(Options.OutputFile) || Options.OutputOnStdOut;
|
||||||
if (Options.RequestHelp || streamToOutput)
|
if (Options.NoGUI || Options.RequestHelp || streamToOutput)
|
||||||
{
|
{
|
||||||
//if(!Options.IsRunningOnMono)
|
//if(!Options.IsRunningOnMono)
|
||||||
//{
|
//{
|
||||||
|
@ -71,6 +71,8 @@ Options:
|
|||||||
-p PASSWORD
|
-p PASSWORD
|
||||||
specifies a password to authenticate when a xsd dependency
|
specifies a password to authenticate when a xsd dependency
|
||||||
(import or include) is a secured url.
|
(import or include) is a secured url.
|
||||||
|
-no-gui
|
||||||
|
prevents the graphical interface to be opened.
|
||||||
|
|
||||||
|
|
||||||
Example 1:
|
Example 1:
|
||||||
@ -136,7 +138,8 @@ CHANGES:
|
|||||||
version 1.2alpha (2016-11-??)
|
version 1.2alpha (2016-11-??)
|
||||||
- Add infer XSD from XML menu.
|
- Add infer XSD from XML menu.
|
||||||
- Fix a null reference exception in the documentation (Thanks Mario M.).
|
- Fix a null reference exception in the documentation (Thanks Mario M.).
|
||||||
- Add the namespace in the command line option -r (Thanks Kevin)
|
- Add the namespace in the command line option -r (Thanks Kevin).
|
||||||
|
- Add the option --no-gui to prevent the UI to be shown (Thanks Kevin).
|
||||||
|
|
||||||
version 1.1 (2016-07-08)
|
version 1.1 (2016-07-08)
|
||||||
- Fix SVG page size.
|
- Fix SVG page size.
|
||||||
|
BIN
XSDDiagram.exe
BIN
XSDDiagram.exe
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue
Block a user