From 0c2a4d6c3c832671a1f5647ab1b095adef2e985e Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 15 May 2018 16:14:56 +0200 Subject: Implement -@foo as alternative to @foo, also add --config-name|-n An argument with leading '@' has special meaning in Windows PowerShell. --- bdep/bdep.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'bdep/bdep.cxx') 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; } - // @ + // @ & -@ // - 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; -- cgit v1.1