Skip to content

Commit

Permalink
Add the possibility to disable command line processing.
Browse files Browse the repository at this point in the history
Use -version=VibeDisableCommandLineParsing for this.
  • Loading branch information
s-ludwig committed Mar 19, 2014
1 parent b9111a5 commit 77acca8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion source/vibe/core/args.d
Expand Up @@ -213,7 +213,9 @@ private string[] getConfigPaths()
// this is invoked by the first getOption call (at least vibe.core will perform one)
private void init()
{
g_args = Runtime.args;
version (VibeDisableCommandLineParsing) {}
else g_args = Runtime.args;

if (!g_args.length) g_args = ["dummy"];

// TODO: let different config files override individual fields
Expand Down

0 comments on commit 77acca8

Please sign in to comment.