def help(args=[],suppress_banner=False): if not suppress_banner: print "Appcelerator Titanium" print "Copyright (c) 2010-2011 by Appcelerator, Inc." print if len(args)==0: print "commands:" print print " create - create a project" # print " build - build/compile project" print " run - run an existing project" print " emulator - start the emulator (android)" print " docgen - generate html docs for a module (android)" print " fastdev - management for the Android fastdev server" # print " install - install a project" # print " package - package a project for distribution" print " help - get help" else: cmd = args[0] if cmd == 'create': print "Usage: %s create [--platform=p] [--type=t] [--dir=d] [--name=n] [--id=i] [--ver=v]" % os.path.basename(sys.argv[0]) print print " --platform=p1,p2 platform: iphone, ipad, android, blackberry, etc." print " --type=t type of project: project, module, plugin" print " --dir=d directory to create the new project" print " --name=n project name" print " --id=i project id (ie com.companyName.project" print " --ver=i platform version" print " --android=sdk_folder For android module - the Android SDK folder" elif cmd == 'build': print "Usage: %s build [--dir=d]" % os.path.basename(sys.argv[0]) print print " --dir=d project directory" elif cmd == 'run': print "Usage: %s run [--dir=d]" % os.path.basename(sys.argv[0]) print print " --dir=d project directory" elif cmd == 'install': print "Usage: %s install [--dir=d]" % os.path.basename(sys.argv[0]) print print " --dir=d project directory" elif cmd == 'package': print "Usage: %s package [--dir=d]" % os.path.basename(sys.argv[0]) print print " --dir=d project directory" elif cmd == 'docgen': print "Usage: %s docgen [--dir=d] [--dest-dir=d]" % os.path.basename(sys.argv[0]) print print " --dir=d project directory" print " --dest-dir=d destination directory" elif cmd == 'fastdev': android_dir = os.path.join(template_dir, 'android') sys.path.append(android_dir) import fastdev fastdev.get_optparser().print_usage() else: print "Unknown command: %s" % cmd print sys.exit(-1)
def help(args=[], suppress_banner=False): if not suppress_banner: print "Appcelerator Titanium" print "Copyright (c) 2010-2011 by Appcelerator, Inc." print if len(args) == 0: print "commands:" print print " create - create a project" # print " build - build/compile project" print " run - run an existing project" print " emulator - start the emulator (android)" print " docgen - generate html docs for a module (android)" print " fastdev - management for the Android fastdev server" # print " install - install a project" # print " package - package a project for distribution" print " help - get help" else: cmd = args[0] if cmd == 'create': print "Usage: %s create [--platform=p] [--type=t] [--dir=d] [--name=n] [--id=i] [--ver=v]" % os.path.basename( sys.argv[0]) print print " --platform=p1,p2 platform: iphone, ipad, android, blackberry, etc." print " --type=t type of project: project, module, plugin" print " --dir=d directory to create the new project" print " --name=n project name" print " --id=i project id (ie com.companyName.project" print " --ver=i platform version" print " --android=sdk_folder For android module - the Android SDK folder" elif cmd == 'build': print "Usage: %s build [--dir=d]" % os.path.basename(sys.argv[0]) print print " --dir=d project directory" elif cmd == 'run': print "Usage: %s run [--dir=d]" % os.path.basename(sys.argv[0]) print print " --dir=d project directory" elif cmd == 'install': print "Usage: %s install [--dir=d]" % os.path.basename(sys.argv[0]) print print " --dir=d project directory" elif cmd == 'package': print "Usage: %s package [--dir=d]" % os.path.basename(sys.argv[0]) print print " --dir=d project directory" elif cmd == 'docgen': print "Usage: %s docgen [--dir=d] [--dest-dir=d]" % os.path.basename( sys.argv[0]) print print " --dir=d project directory" print " --dest-dir=d destination directory" elif cmd == 'fastdev': android_dir = os.path.join(template_dir, 'android') sys.path.append(android_dir) import fastdev fastdev.get_optparser().print_usage() else: print "Unknown command: %s" % cmd print sys.exit(-1)