Files
carbon-lang/driver/flags.def
T
Chandler Carruth 8afc1f8316 Add a rough outline of a command line driver. (#548)
This is actually code that I wrote a long time ago but didn't get added
to the repository, trying to tidy that up. This is the last code.
Nothing much interesting here, just a skeleton of a CLI. But seemed
better to add it than to not.
2021-06-08 02:43:30 -07:00

20 lines
691 B
Modula-2

// Part of the Carbon Language project, under the Apache License v2.0 with LLVM
// Exceptions. See /LICENSE for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
// Note: X-macro header. Do not use include guards.
#ifndef CARBON_SUBCOMMAND
// FIXME: We should expand `HelpText` to be a short help name, a synopsis, and a
// long-form description.
#define CARBON_SUBCOMMAND(Name, Spelling, HelpText)
#endif
CARBON_SUBCOMMAND(Help, "help",
"Display help information about the driver options.")
CARBON_SUBCOMMAND(
DumpTokens, "dump-tokens",
"Dumps the sequence of tokens lexed out of the input source file.")
#undef CARBON_SUBCOMMAND