Print usage when no arguments are passed
This commit is contained in:
parent
5cad1dbe69
commit
1a344ed050
@ -533,6 +533,8 @@ def GetCommentProcessor(input_file):
|
|||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
if len(sys.argv) == 1:
|
||||||
|
sys.argv.append('--help')
|
||||||
parser = argparse.ArgumentParser()
|
parser = argparse.ArgumentParser()
|
||||||
parser.add_argument('-o', '--output', metavar=_('OUTPUT'), help=_('Output file'))
|
parser.add_argument('-o', '--output', metavar=_('OUTPUT'), help=_('Output file'))
|
||||||
parser.add_argument('-s', '--size', metavar=_('WIDTHxHEIGHT'), required=True, help=_('Stage size in pixels'))
|
parser.add_argument('-s', '--size', metavar=_('WIDTHxHEIGHT'), required=True, help=_('Stage size in pixels'))
|
||||||
|
Loading…
Reference in New Issue
Block a user