Skip to content

Commit

Permalink
editconf.py: better error message if command line arguments are not v…
Browse files Browse the repository at this point in the history
…alid
  • Loading branch information
JoshData committed Apr 11, 2015
1 parent c38bdbb commit 2cab9d5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tools/editconf.py
Expand Up @@ -54,6 +54,14 @@
print("Invalid option.")
sys.exit(1)

# sanity check command line
for setting in settings:
try:
name, value = setting.split("=", 1)
except:
import subprocess
print("Invalid command line: ", subprocess.list2cmdline(sys.argv))

# create the new config file in memory

found = set()
Expand Down

0 comments on commit 2cab9d5

Please sign in to comment.