2023-01-11 17:09:59 -07:00
|
|
|
#!/usr/bin/env python
|
2024-02-06 14:06:44 -07:00
|
|
|
from scwrypts import execute
|
2023-02-21 18:44:27 -07:00
|
|
|
#####################################################################
|
2023-01-11 17:09:59 -07:00
|
|
|
|
2024-02-06 14:06:44 -07:00
|
|
|
description = 'a simple "Hello, World!" program'
|
|
|
|
|
parse_args = [
|
|
|
|
|
( ['-m', '--message'], {
|
|
|
|
|
'dest' : 'message',
|
|
|
|
|
'default' : 'HELLO WORLD',
|
|
|
|
|
'help' : 'message to print',
|
|
|
|
|
'required' : False,
|
|
|
|
|
}),
|
|
|
|
|
]
|
2023-01-11 17:09:59 -07:00
|
|
|
|
2023-02-21 18:44:27 -07:00
|
|
|
def main(args, stream):
|
|
|
|
|
stream.writeline(args.message)
|
2023-01-11 17:09:59 -07:00
|
|
|
|
2023-02-21 18:44:27 -07:00
|
|
|
|
|
|
|
|
#####################################################################
|
2024-02-06 14:06:44 -07:00
|
|
|
if __name__ == '__main__':
|
|
|
|
|
execute(main, description, parse_args)
|