Created
October 19, 2016 00:52
-
-
Save leveled/15b77b84700a08c21916852434c51e5e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
parser = argparse.ArgumentParser(prog='mydaemon') | |
sp = parser.add_subparsers() | |
sp_start = sp.add_parser('start', help='Starts %(prog)s daemon') | |
sp_stop = sp.add_parser('stop', help='Stops %(prog)s daemon') | |
sp_restart = sp.add_parser('restart', help='Restarts %(prog)s daemon') | |
parser.parse_args() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment