Print usage when no arguments are passed

This commit is contained in:
Star Brilliant 2013-11-24 17:07:14 +08:00
parent 5cad1dbe69
commit 1a344ed050

View File

@ -533,6 +533,8 @@ def GetCommentProcessor(input_file):
def main():
if len(sys.argv) == 1:
sys.argv.append('--help')
parser = argparse.ArgumentParser()
parser.add_argument('-o', '--output', metavar=_('OUTPUT'), help=_('Output file'))
parser.add_argument('-s', '--size', metavar=_('WIDTHxHEIGHT'), required=True, help=_('Stage size in pixels'))