1 # Copyright (C) The Arvados Authors. All rights reserved.
3 # SPDX-License-Identifier: Apache-2.0
5 # Example command line program wrapper for the Unix tool "sort"
6 # demonstrating command line flags.
8 doc: "Sort lines using the `sort` command"
14 # This example is similar to the previous one, with an additional input
15 # parameter called "reverse". It is a boolean parameter, which is
16 # intepreted as a command line flag. The value of "prefix" is used for
17 # flag to put on the command line if "reverse" is true, if "reverse" is
18 # false, no flag is added.
20 # This example also introduced the "position" field. This indicates the
21 # sorting order of items on the command line. Lower numbers are placed
22 # before higher numbers. Here, the "-r" (same as "--reverse") flag (if
23 # present) will be added to the command line before the input file path.