1
1
mirror of https://github.com/dgis/xsddiagram.git synced 2024-08-17 06:20:23 +03:00

Add the -no-gui option.

This commit is contained in:
dgis 2016-11-24 17:26:05 +01:00
parent 812fbb759f
commit af7ce6ba4a
5 changed files with 14 additions and 4 deletions

View File

@ -37,8 +37,9 @@ namespace XSDDiagram
public static string Username { get; private set; }
public static string Password { get; private set; }
public static IList<string> TextOutputFields { get; private set; }
public static bool NoGUI { get; private set; }
static Options()
static Options()
{
InputFile = null;
OutputFile = null;
@ -51,6 +52,7 @@ namespace XSDDiagram
ForceHugeImageGeneration = false;
RequestHelp = false;
TextOutputFields = new List<string>();
NoGUI = false;
IsRunningOnMono = Type.GetType("Mono.Runtime") != null;
@ -155,6 +157,10 @@ namespace XSDDiagram
TextOutputFields.Add(field.Trim());
}
}
else if (string.Compare("-no-gui", argument, true) == 0)
{
NoGUI = true;
}
else
InputFile = argument;
}

View File

@ -66,7 +66,8 @@ Usage: {1} [-o output.svg] [-os EXTENSION] [-r RootElement[@namespace]]* [-e N]
-p PASSWORD
specifies a password to authenticate when a xsd dependency
(import or include) is a secured url.
-no-gui
prevents the graphical interface to be opened.
Example 1:
> 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;
bool streamToOutput = !string.IsNullOrEmpty(Options.OutputFile) || Options.OutputOnStdOut;
if (Options.RequestHelp || streamToOutput)
if (Options.NoGUI || Options.RequestHelp || streamToOutput)
{
//if(!Options.IsRunningOnMono)
//{

View File

@ -71,6 +71,8 @@ Options:
-p PASSWORD
specifies a password to authenticate when a xsd dependency
(import or include) is a secured url.
-no-gui
prevents the graphical interface to be opened.
Example 1:
@ -136,7 +138,8 @@ CHANGES:
version 1.2alpha (2016-11-??)
- Add infer XSD from XML menu.
- 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)
- Fix SVG page size.

Binary file not shown.

Binary file not shown.