OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. |
| 4 |
| 5 import "dart:convert"; |
| 6 import "dart:io"; |
| 7 |
| 8 main(List<String> args) { |
| 9 var result = new Map(); |
| 10 result['a'] = const bool.fromEnvironment('a', defaultValue: null); |
| 11 result['b'] = const bool.fromEnvironment('b'); |
| 12 result['c'] = const bool.fromEnvironment('c', defaultValue: true); |
| 13 stdout.write(JSON.encode(result)); |
| 14 } |
OLD | NEW |