aboutsummaryrefslogtreecommitdiff
path: root/bdep/bdep.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-05-15 16:14:56 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2018-05-15 16:14:56 +0200
commit0c2a4d6c3c832671a1f5647ab1b095adef2e985e (patch)
tree339b64465ad5f710223173fc26851ea084f2beb2 /bdep/bdep.cxx
parent58cd2d5788147c80d6f266b6984615bbd23516d7 (diff)
Implement -@foo as alternative to @foo, also add --config-name|-n
An argument with leading '@' has special meaning in Windows PowerShell.
Diffstat (limited to 'bdep/bdep.cxx')
-rw-r--r--bdep/bdep.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/bdep/bdep.cxx b/bdep/bdep.cxx
index c9d3234..c614cc0 100644
--- a/bdep/bdep.cxx
+++ b/bdep/bdep.cxx
@@ -88,9 +88,10 @@ init (const common_options& co, cli::group_scanner& scan, strings& args)
continue;
}
- // @<cfg-name>
+ // @<cfg-name> & -@<cfg-name>
//
- if (*a == '@' && cfg_name (&o, a + 1))
+ if ((*a == '@' && cfg_name (&o, a + 1)) ||
+ (*a == '-' && a[1] == '@' && cfg_name (&o, a + 2)))
{
scan.next ();
continue;