fish-shell/src/builtin_argparse.h
Kurtis Rader 277999adef implement argparse builtin
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
2017-07-12 22:38:24 -07:00

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