Move --list-dsn execution path out of main.py
#1809
+132
−14
Merged