diff options
| author | Ulf Magnusson <ulfalizer@gmail.com> | 2018-05-27 16:00:29 +0200 |
|---|---|---|
| committer | Ulf Magnusson <ulfalizer@gmail.com> | 2018-05-27 16:04:30 +0200 |
| commit | b20db3b8a79c3e4e3421b1882fa80964726bdb4b (patch) | |
| tree | a38189c431fa16c5fa7069518fe3021d261590b5 /examples/merge_config.py | |
| parent | 7427079f008155f0901a5d53f9f1d4175381a585 (diff) | |
Simplify error exits
Had missed sys.exit(msg).
Diffstat (limited to 'examples/merge_config.py')
| -rw-r--r-- | examples/merge_config.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/merge_config.py b/examples/merge_config.py index a51738c..f3fa471 100644 --- a/examples/merge_config.py +++ b/examples/merge_config.py @@ -63,8 +63,7 @@ from kconfiglib import Kconfig, Symbol, BOOL, TRISTATE, TRI_TO_STR import sys if len(sys.argv) < 4: - print("usage: merge_config.py Kconfig merged_config config1 [config2 ...]") - sys.exit(1) + sys.exit("usage: merge_config.py Kconfig merged_config config1 [config2 ...]") kconf = Kconfig(sys.argv[1]) |
