def get_option_parser(): parser = COP( __doc__, jset=True, prep=True, argdoc=[('WORKFLOW_ID', 'Workflow ID or path to source')], ) parser.add_option( "--check-circular", help="Check for circular dependencies in graphs when the number of " "tasks is greater than 100 (smaller graphs are always checked). " "This can be slow when the number of " "tasks is high.", action="store_true", default=False, dest="check_circular") parser.add_option( "--output", "-o", help="Specify a file name to dump the processed flow.cylc.", metavar="FILENAME", action="store", dest="output") parser.add_option( "--profile", help="Output profiling (performance) information", action="store_true", default=False, dest="profile_mode") parser.add_option( "-u", "--run-mode", help="Validate for run mode.", action="store", default="live", dest="run_mode", choices=['live', 'dummy', 'simulation']) parser.add_option(icp_option) parser.add_cylc_rose_options() parser.set_defaults(is_validate=True) return parser
def get_option_parser(): """CLI.""" parser = COP( __doc__, jset=True, prep=True, argdoc=[ ('[WORKFLOW]', 'Workflow name or path'), ('[START]', 'Graph start; defaults to initial cycle point'), ('[STOP]', 'Graph stop point or interval; defaults to 3 points from START') ]) parser.add_option('-g', '--group', help="task family to group. Can be used multiple times. " "Use '<all>' to specify all families above root.", action='append', default=[], dest='grouping') parser.add_option( '-c', '--cycles', help='Group tasks by cycle point.', action='store_true', default=False, ) parser.add_option( '-t', '--transpose', help='Transpose graph.', action='store_true', default=False, ) parser.add_option( '-o', help=('Output the graph to a file. The file extension determines the' ' format.'), action='store', dest='output') parser.add_option('-n', '--namespaces', help='Plot the workflow namespace inheritance hierarchy ' '(task run time properties).', action='store_true', default=False, dest='namespaces') parser.add_option( '-r', '--reference', help='Output in a sorted plain text format for comparison purposes. ' 'If not given, assume --output-file=-.', action='store_true', default=False, dest='reference') parser.add_option('--show-suicide', help='Show suicide triggers. Not shown by default.', action='store_true', default=False, dest='show_suicide') parser.add_option( '--icp', action='store', default=None, metavar='CYCLE_POINT', help=( 'Set initial cycle point. Required if not defined in flow.cylc.')) parser.add_option( '--diff', help='Show the difference between two workflows (implies --reference)', action='store', ) parser.add_cylc_rose_options() return parser
def get_option_parser(): parser = COP( __doc__, argdoc=[("[WORKFLOW_ID]", "Workflow ID or path to source")], jset=True, ) parser.add_option("-i", "--item", metavar="[SEC...]ITEM", help="Item or section to print (multiple use allowed).", action="append", dest="item", default=[]) parser.add_option( '-d', '--defaults', help='Include the hard-coded Cylc default values in the output.', action='store_true', default=False) parser.add_option( "-n", "--null-value", help="The string to print for unset values (default nothing).", metavar="STRING", action="store", default='', dest="none_str") parser.add_option("-o", "--one-line", help="Print multiple single-value items at once.", action="store_true", default=False, dest="oneline") parser.add_option( "--print-hierarchy", "--print-filenames", "--hierarchy", help=("Print the list of locations in which configuration files are " "looked for. An existing configuration file lower down the list " "overrides any settings it shares with those higher up."), action="store_true", default=False, dest="print_hierarchy") parser.add_option(icp_option) platform_listing_options_group = parser.add_option_group( 'Platform printing options') platform_listing_options_group.add_option( '--platform-names', help=('Print a list of platforms and platform group names from the ' 'configuration.'), action='store_true', default=False, dest='print_platform_names') platform_listing_options_group.add_option( '--platforms', help=('Print platform and platform group configurations, ' 'including metadata.'), action='store_true', default=False, dest='print_platforms') parser.add_cylc_rose_options() return parser
def get_option_parser(): parser = COP(__doc__, jset=True, prep=True, icp=True) parser.add_option( "-a", "--all-tasks", help="Print all tasks, not just those used in the graph.", action="store_true", default=False, dest="all_tasks") parser.add_option("-n", "--all-namespaces", help="Print all runtime namespaces, not just tasks.", action="store_true", default=False, dest="all_namespaces") parser.add_option( "-m", "--mro", help="Print the linear \"method resolution order\" for each namespace " "(the multiple-inheritance precedence order as determined by the " "C3 linearization algorithm).", action="store_true", default=False, dest="mro") parser.add_option( "-t", "--tree", help="Print the first-parent inheritance hierarchy in tree form.", action="store_true", default=False, dest="tree") parser.add_option( "-b", "--box", help="With -t/--tree, using unicode box characters. Your terminal " "must be able to display unicode characters.", action="store_true", default=False, dest="box") parser.add_option("-w", "--with-titles", help="Print namespaces titles too.", action="store_true", default=False, dest="titles") parser.add_option( "-p", "--points", help="Print task IDs from [START] to [STOP] cycle points. Both bounds " "are optional and STOP can be an interval from START (or from the " "initial cycle point, by default). Use '-p , ' for the default range.", metavar="[START],[STOP]", action="store", default=None, dest="prange") parser.add_cylc_rose_options() return parser