shrinko8
Script to run the shrinko command line in shrinko8 (pico8) mode. The actual command line logic is in run_shrinko
1#!/usr/bin/env python3 2"""Script to run the shrinko command line in shrinko8 (pico8) mode. The actual command line logic is in run_shrinko""" 3import os, sys 4if __package__ not in (None, ""): 5 sys.path.insert(0, os.path.dirname(__file__)) 6 7from run_shrinko import create_main 8from pico_defs import Language 9 10main = create_main(Language.pico8) 11 12if __name__ == "__main__": 13 sys.exit(main())
def
main(raw_args=None):
850 def main(raw_args=None): 851 raw_args = default(raw_args, sys.argv[1:]) 852 853 if not raw_args: # help is better than usage 854 parser.print_help(sys.stderr) 855 return ErrCodes.err 856 857 first = True 858 while True: 859 args = parser.parse_intermixed_args(raw_args) 860 errcode = main_once(args) 861 862 if not args.watch or args.watch == True: 863 return errcode 864 865 eprint(f"{'Starting' if first else 'Resuming'} watch... (Ctrl+C to terminate)\n") 866 first = False 867 868 if not args.watch.wait(): 869 return errcode
The type of the None singleton.