mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-29 06:13:20 +00:00
277999adef
We've needed a fishy way to parse flags and arguments given to scripts and functions for a very long time. In particular a manner that provides the same behavior implemented by builtin commands. The long term goal is to support DocOpt. But since it is unclear when that will happen so this implements a `argparse` command. So named as homage to the excellent Python module of the same name. Fixes #4190
9 lines
242 B
C++
9 lines
242 B
C++
// Prototypes for executing builtin_getopt function.
|
|
#ifndef FISH_BUILTIN_ARGPARSE_H
|
|
#define FISH_BUILTIN_ARGPARSE_H
|
|
|
|
class parser_t;
|
|
struct io_streams_t;
|
|
|
|
int builtin_argparse(parser_t &parser, io_streams_t &streams, wchar_t **argv);
|
|
#endif
|