auto-append -h

This commit is contained in:
Kloadut 2013-02-10 20:31:29 +01:00
parent 98ada0253e
commit 508aec5c84
2 changed files with 7 additions and 4 deletions

View file

@ -161,6 +161,9 @@ def main():
int -- 0 or error code
"""
if len(sys.argv) < 2:
sys.argv.append('-h')
with open('action_map.yml') as f:
action_map = yaml.load(f)